Bug 1834366 - VIP entries for /etc/hosts mangled
Summary: VIP entries for /etc/hosts mangled
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 16.1 (Train)
Hardware: All
OS: Linux
high
high
Target Milestone: z9
: 16.1 (Train on RHEL 8.2)
Assignee: OSP Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-11 15:14 UTC by Mark Chappell
Modified: 2023-09-18 00:21 UTC (History)
6 users (show)

Fixed In Version: tripleo-ansible-0.5.1-1.20220513083452.902c3c8.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-07 20:24:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 715357 0 None MERGED Rework how we push the content in the file 2021-01-05 08:16:41 UTC
Red Hat Issue Tracker OSP-2039 0 None None None 2022-02-05 09:16:03 UTC
Red Hat Product Errata RHBA-2022:8795 0 None None None 2022-12-07 20:25:20 UTC

Description Mark Chappell 2020-05-11 15:14:04 UTC
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('') }}

Comment 4 Cédric Jeanneret 2022-07-15 11:07:30 UTC
Moving to 16.1 - we have the patch, there's a package, 16.0 is EOL...

Comment 8 David Rosenfeld 2022-11-03 18:26:21 UTC
Manual inspection of /etc/hosts file on 16.1 deployments shows no mangled entries.

Comment 15 errata-xmlrpc 2022-12-07 20:24:45 UTC
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

Comment 16 Red Hat Bugzilla 2023-09-18 00:21:05 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.