Bug 1971001

Summary: [16.1 -> 16.2] Minor update creates double entries in /etc/hosts on the overcloud
Product: Red Hat OpenStack Reporter: Michele Baldessari <michele>
Component: tripleo-ansibleAssignee: Michele Baldessari <michele>
Status: CLOSED ERRATA QA Contact: Jason Grosso <jgrosso>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: jpretori, lbezdick, lmiccini, shrjoshi, spower
Target Milestone: betaKeywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tripleo-ansible-0.7.1-2.20210603175835.el8ost.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-15 07:15:55 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:

Description Michele Baldessari 2021-06-11 15:54:35 UTC
Description of problem:
After a successful 16.1->16.2 update the overcloud has every entry twice in /etc/hosts. So we have:
# START_HOST_ENTRIES_FOR_STACK: overcloud
172.17.1.60 compute-0.redhat.local compute-0
172.17.3.34 compute-0.storage.redhat.local compute-0.storage
172.17.1.60 compute-0.internalapi.redhat.local compute-0.internalapi
.....
10.0.0.150  overcloud.redhat.local
# END_HOST_ENTRIES_FOR_STACK: overcloud
# BEGIN ANSIBLE MANAGED BLOCK
172.17.1.60 compute-0.redhat.local compute-0
172.17.3.34 compute-0.storage.redhat.local compute-0.storage
172.17.1.60 compute-0.internalapi.redhat.local compute-0.internalapi
172.17.2.135 compute-0.tenant.redhat.local compute-0.tenant
192.168.24.20 compute-0.ctlplane.redhat.local compute-0.ctlplane

So we have all entries under END_HOST_ENTRIES_FOR_STACK:overcloud and then again all entries under "BEGIN ANSIBLE MANAGED BLOCK"

Comment 10 errata-xmlrpc 2021-09-15 07:15:55 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 (RHOSP) 16.2 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/RHEA-2021:3483