Bug 1834366
| Summary: | VIP entries for /etc/hosts mangled | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Mark Chappell <mchappel> |
| Component: | tripleo-ansible | Assignee: | OSP Team <rhos-maint> |
| Status: | CLOSED ERRATA | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 16.1 (Train) | CC: | augol, cjeanner, drosenfe, gchamoul, ramishra, rhos-maint |
| Target Milestone: | z9 | Keywords: | Triaged |
| Target Release: | 16.1 (Train on RHEL 8.2) | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | tripleo-ansible-0.5.1-1.20220513083452.902c3c8.el8ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-12-07 20:24:45 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: | |||
Moving to 16.1 - we have the patch, there's a package, 16.0 is EOL... Manual inspection of /etc/hosts file on 16.1 deployments shows no mangled entries. 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 (Red Hat OpenStack Platform 16.1.9 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-2022:8795 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |
Description of problem: During the initial configuration of our cluster tripleo-hosts-entries is currently mangling the VIP entries and dumping them all onto a single line: """ $ cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 # BEGIN ANSIBLE MANAGED BLOCK 172.17.10.11 director1.ctlplane.osp-001.lab.iad2.dc.redhat.com director1.ctlplane 172.17.10.69 ctlplane.osp-001.lab.iad2.dc.redhat.com172.17.20.23 internalapi.osp-001.lab.iad2.dc.redhat.com10.14.49.183 overcloud.osp-001.lab.iad2.dc.redhat.com10.14.8.134 storage.osp-001.lab.iad2.dc.redhat.com 172.16.8.155 storagemgmt.osp-001.lab.iad2.dc.redhat.com10.14.9.241 storagenfs.osp-001.lab.iad2.dc.redhat.com 172.17.20.110 compute-01.osp-001.lab.iad2.dc.redhat.com compute-01 10.14.48.127 compute-01.management.osp-001.lab.iad2.dc.redhat.com compute-01.management ... """ Version-Release number of selected component (if applicable): tripleo-ansible-0.4.2-0.20200110023759.ee731ba.el8ost.noarch How reproducible: Every deployment. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: I suspect that joining using '' is the cause here: From /usr/share/ansible/roles/tripleo-hosts-entries/tasks/main.yml : {{ tripleo_hosts_entries_vip_hosts_entries | join('') }}