From 40d82db45bd63620988e5bb7cd02b35e382704ae Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 11 Jul 2019 21:56:13 +0100 Subject: [PATCH] Differentiate AIO /etc/hosts entries for localhost and aio1 This patch ensures that localhost resolves to a loopback address, and aio1 resolves to the address assigned to br-mgmt. Without this change rabbitmq is unable to function properly when it is bound to the mgmt ip rather than 0.0.0.0 as there is a mismatch between the hostname 'aio1' and the /etc/hosts entry for that ip. The rabbitmq role corrects /etc/hosts entries for 127.0.0.1, but not 127.0.1.1 so the extra entry is removed. The aio1 hosts entry is changed to resolve to 172.29.236.100. Change-Id: I194fcab8b84723cff76ec09315e264ec7840ea64 --- tests/roles/bootstrap-host/tasks/prepare_hostname.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/roles/bootstrap-host/tasks/prepare_hostname.yml b/tests/roles/bootstrap-host/tasks/prepare_hostname.yml index 15ce59093c..415b54dafd 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_hostname.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_hostname.yml @@ -16,8 +16,8 @@ - name: Ensure the hosts file is templated appropriately copy: content: | - 127.0.0.1 localhost aio1 - 127.0.1.1 aio1.openstack.local aio1 + 127.0.0.1 localhost + 172.29.236.100 aio1.openstack.local aio1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback