Bug 2297423
| Summary: | False labeling of hosts in the ceph_spec.yaml file when roles in roles_data.yaml aren't defined in overcloud-baremetal-deploy.yaml | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Yonatan <yzaken> | ||||
| Component: | tripleo-ansible | Assignee: | Manoj Katari <mkatari> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Joe H. Rahme <jhakimra> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 17.1 (Wallaby) | CC: | bshephar, fpantano, johfulto, mariel, mkatari | ||||
| Target Milestone: | z4 | Keywords: | Triaged | ||||
| Target Release: | 17.1 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | tripleo-ansible-3.3.1-17.1.20240806160802.8debef3.el9ost | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2024-11-21 09:41:52 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Yonatan
2024-07-11 22:07:37 UTC
Created attachment 2039464 [details] Assign roles_to_hosts[role] with matching_hosts only if role was found in metalsmith_data_file I don't know how to create a PR for this as I didn't manage to fork the following repository: https://github.com/openstack-archive/tripleo-ansible The issue you mentioned will be seen if the baremetal file is missing some role info when compared to roles_data.
bootstrap module is designed considering the fact that every role information in baremetal file will always match with roles_data.yaml
as the metal file is generated using the steps below
1. generate roles_data using the list of custom roles
openstack overcloud roles generate -o /home/stack/composable_roles/roles/roles_data.yaml \
ControllerStorageNfs \
CephStorage \
Compute \
2. extract the provisioned and generate overcloud-baremetal-deploy.yaml from roles_data
openstack overcloud node extract provisioned --stack overcloud --roles-file /home/stack/templates/roles_data.yaml --output /home/stack/templates/overcloud-baremetal-deploy.yaml
3. provision and generate the final baremetal file which will be used by the module.
openstack overcloud node provision -y --network-config --templates /home/stack/templates --output /home/stack/templates/overcloud-baremetal-deployed.yaml /home/stack/templates/overcloud-baremetal-deploy.yaml
I won't consider it as a bug but your patch seems like a improvement to the module which can avoid incorrect spec (irrespective of how baremetal file is generated), so +1 for the patch.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (RHOSP 17.1.4 bug fix and enhancement advisory), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2024:9974 |