Subcloud goes offline after managing
Formatting of the passwords was incorrect leading to authentication issues Change-Id: If181e38f07dc66b6e4b12bf0b5a7fb123d75fbb2 Closes-Bug: 1839377 Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
This commit is contained in:
parent
7e39c779ec
commit
9217e03a62
|
@ -195,13 +195,14 @@ class SubcloudManager(manager.Manager):
|
|||
# get copied to the override file
|
||||
payload['ansible_become_pass'] = payload['subcloud_password']
|
||||
payload['ansible_ssh_pass'] = payload['subcloud_password']
|
||||
payload['admin_password'] = keyring.get_password('CGCS', 'admin')
|
||||
payload['admin_password'] = str(keyring.get_password('CGCS',
|
||||
'admin'))
|
||||
del payload['subcloud_password']
|
||||
|
||||
payload['users'] = dict()
|
||||
for user in USERS_TO_REPLICATE:
|
||||
payload['users'][user] = \
|
||||
keyring.get_password(user, SERVICES_USER)
|
||||
str(keyring.get_password(user, SERVICES_USER))
|
||||
|
||||
# Update the ansible inventory with the new subcloud
|
||||
self._update_subcloud_inventory(payload)
|
||||
|
|
Loading…
Reference in New Issue