Undercloud update and install stomps /etc/hosts on the Director node
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
High
|
Brendan Shephard |
Bug Description
Description of problem:
Overcloud host entries of /etc/hosts on the undercloud were removed after re-executing `openstack undercloud install` like the following.
~~~
(undercloud) [stack@undercloud-0 ~]$ cat /etc/hosts
# BEGIN ANSIBLE MANAGED BLOCK
192.168.24.1 undercloud-
192.168.24.1 undercloud-
192.168.24.1 undercloud-
# END ANSIBLE MANAGED BLOCK
127.0.0.1 undercloud-
127.0.0.1 localhost localhost.
::1 localhost localhost.
~~~
All the overcloud host entries were deleted.
Version-Release number of selected component (if applicable):
- python3-
How reproducible:
100%
Steps to Reproduce:
1. Execute openstack undercloud install
2. Execute `openstack undercloud install` again
Actual results:
Overcloud host entries of /etc/hosts file on the undercloud node are deleted.
Expected results:
Overcloud host entries of /etc/hosts file on the undercloud node are remaining after executing `openstack undercloud install`.
Additional info:
I added some overcloud host entries and executed `openstack undercloud install` again. And it can be reproduced.
Here's the diff between the /etc/hosts.
~~~
(undercloud) [stack@undercloud-0 ~]$ diff -Npu /etc/hosts hosts.backup-
--- /etc/hosts 2021-02-25 04:06:04.187073777 +0000
+++ hosts.backup-
@@ -3,6 +3,29 @@
192.168.24.1 undercloud-
192.168.24.1 undercloud-
+172.17.1.78 controller-
+172.17.3.135 controller-
+172.17.4.126 controller-
+172.17.1.78 controller-
+172.17.2.25 controller-
+10.0.0.127 controller-
+192.168.24.34 controller-
+172.17.1.18 controller-
+172.17.3.25 controller-
+172.17.4.103 controller-
+172.17.1.18 controller-
+172.17.2.67 controller-
+10.0.0.129 controller-
+192.168.24.14 controller-
+172.17.1.68 controller-
+172.17.3.81 controller-
+172.17.4.76 controller-
+172.17.1.68 controller-
+172.17.2.47 controller-
+10.0.0.106 controller-
+192.168.24.11 controller-
+
+
# END ANSIBLE MANAGED BLOCK
127.0.0.1 undercloud-
127.0.0.1 localhost localhost.
(undercloud) [stack@undercloud-0 ~]$ cat /etc/hosts
# BEGIN ANSIBLE MANAGED BLOCK
192.168.24.1 undercloud-
192.168.24.1 undercloud-
192.168.24.1 undercloud-
# END ANSIBLE MANAGED BLOCK
127.0.0.1 undercloud-
127.0.0.1 localhost localhost.
::1 localhost localhost.
~~~
Changed in tripleo: | |
assignee: | nobody → Brendan Shephard (bshephar) |
Changed in tripleo: | |
status: | In Progress → Triaged |
importance: | Undecided → High |
milestone: | none → wallaby-rc1 |
Changed in tripleo: | |
status: | Triaged → In Progress |
https:/ /bugzilla. redhat. com/show_ bug.cgi? id=1933528