From 84f466763a60646fbe4f47b8cb33bf1044a2b75b Mon Sep 17 00:00:00 2001 From: Alexandre Horst Date: Fri, 5 Nov 2021 16:40:09 -0300 Subject: [PATCH] Fix issue on secure_system.yaml not being updated The password in the hieradata secure_system.yaml file unexpectedly did not update with the new password after being the command 'openstack user password set'. This issue appears only in IPV6 only controllers. It does not happen on IPV4 controllers. The fix gets the right field inside the object address. Files changed after this change: /opt/platform/puppet//hieradata/secure_system.yaml Test Plan: PASS: Verify on a controller with IPV6 enabled if the 'openstack user password set' changes the password on the keystone PASS: Verify file hieradata/secure_system.yaml is updated with new password after 'openstack user password set' command Closes-bug: 1949983 Change-Id: Idf5f5f1950ee06dc754ca982cb26d5b053a2d53f Signed-off-by: Alexandre Horst --- sysinv/sysinv/sysinv/sysinv/conductor/keystone_listener.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysinv/sysinv/sysinv/sysinv/conductor/keystone_listener.py b/sysinv/sysinv/sysinv/sysinv/conductor/keystone_listener.py index 7f14af30d5..3cd59c608c 100644 --- a/sysinv/sysinv/sysinv/sysinv/conductor/keystone_listener.py +++ b/sysinv/sysinv/sysinv/sysinv/conductor/keystone_listener.py @@ -66,7 +66,7 @@ def get_transport_url(): auth_password = keyring.get_password('amqp', 'rabbit') if utils.is_valid_ipv6(address.address): - address = "[%s]" % address + address = "[%s]" % address.address transport_url = "rabbit://guest:%s@%s:5672" % (auth_password, address) return transport_url