Pass keystone admin user/project IDs to subcloud
This commit updates to query system controller keystone admin user/project IDs and write them into subcloud bootstrap overrides file. These data will be used at subcloud bootstrap time to update subcloud keystone admin user/project IDs to be same as the system controller. Change-Id: Iddbe51e87b3f3876b88bbdeef4b0b05e46443612 Partial-Bug: 1851247 Signed-off-by: Angie Wang <angie.wang@windriver.com>
This commit is contained in:
parent
657df7be76
commit
c0be9e8f79
|
@ -204,6 +204,15 @@ class SubcloudManager(manager.Manager):
|
|||
# Regenerate the addn_hosts_dc file
|
||||
self._create_addn_hosts_dc(context)
|
||||
|
||||
# Query system controller keystone admin user/project IDs and
|
||||
# store in payload so they get copied to the override file
|
||||
admin_user = m_ks_client.get_user_by_name('admin')
|
||||
admin_project = m_ks_client.get_project_by_name('admin')
|
||||
payload['system_controller_keystone_admin_user_id'] = \
|
||||
admin_user.id
|
||||
payload['system_controller_keystone_admin_project_id'] = \
|
||||
admin_project.id
|
||||
|
||||
# Add the admin and service user passwords to the payload so they
|
||||
# get copied to the override file
|
||||
payload['ansible_become_pass'] = payload['subcloud_password']
|
||||
|
|
Loading…
Reference in New Issue