Add admin-role parameter value to identity relation
This parameter is added to the relation in order to configure service
tokens on related services. The role of the service user is required for
service token validation.
Closes-Bug: #1992840
Change-Id: Id7e84d38a9f774179808137548307c9174a87f87
(cherry picked from commit 55bd702224)
This commit is contained in:
committed by
Felipe Reyes
parent
51cdd61fdc
commit
d3246b4c6e
@@ -2200,6 +2200,7 @@ def add_service_to_keystone(relation_id=None, remote_unit=None):
|
||||
"admin_domain_id": leader_get(attribute='admin_domain_id'),
|
||||
"admin_project_id": admin_project_id,
|
||||
"admin_user_id": admin_user_id,
|
||||
"admin_role": config("admin-role"),
|
||||
"created_roles": ','.join(
|
||||
get_real_role_names(requested_roles, manager))
|
||||
}
|
||||
|
||||
@@ -498,6 +498,7 @@ class TestKeystoneUtils(CharmTestCase):
|
||||
relation_data = {'admin_domain_id': None,
|
||||
'admin_user_id': admin_user_id,
|
||||
'admin_project_id': admin_project_id,
|
||||
'admin_role': 'Admin',
|
||||
'auth_host': '10.0.0.3',
|
||||
'service_host': '10.0.0.3',
|
||||
'service_port': 81, 'auth_port': 80,
|
||||
|
||||
Reference in New Issue
Block a user