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/<software-version>/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 <alexandre.horst@windriver.com>
This commit is contained in:
parent
2ff3d5fdbb
commit
84f466763a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue