++ openstack project show -f value -c id admin + OS_PROJECT_ID=565dcc1ad12a4a2db6b25ceff618d698 ++ openstack user show -f value -c id admin-RegionOne + OS_USER_ID=165982a609964aa78214643b4d3870c0 ++ openstack user show -f value -c id --domain service heat-trustee-RegionOne + SERVICE_OS_TRUSTEE_ID=ccf128208bcf4cb08301b7ed98cf6c42 + openstack trust list -f value -c 'Project ID' -c 'Trustee User ID' -c 'Trustor User ID' + grep '^565dcc1ad12a4a2db6b25ceff618d698 ccf128208bcf4cb08301b7ed98cf6c42 165982a609964aa78214643b4d3870c0$' + '[' -z '' ']' + readarray -t roles ++ openstack role assignment list -f value -c Role --user=admin-RegionOne --project=565dcc1ad12a4a2db6b25ceff618d698 ++ openstack trust create -f value -c id --project=admin --role=c27332711371420f93df626d6d9d5ba5 --trustee-domain=service admin-RegionOne heat-trustee-RegionOne + SERVICE_OS_TRUST_ID=f07dff729b6e464a94a99c8809d1ddcf + openstack trust show f07dff729b6e464a94a99c8809d1ddcf +----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | expires_at | None | | id | f07dff729b6e464a94a99c8809d1ddcf | | is_impersonation | False | | project_id | 565dcc1ad12a4a2db6b25ceff618d698 | | redelegated_trust_id | None | | redelegation_count | 0 | | remaining_uses | None | | roles | [{'id': 'c27332711371420f93df626d6d9d5ba5', 'name': 'admin', 'domain_id': None, 'description': None, 'options': {'immutable': True}, 'links': {'self': 'http://keystone-api.openstack.svc.cluster.local:5000/v3/roles/c27332711371420f93df626d6d9d5ba5'}}] | | trustee_user_id | ccf128208bcf4cb08301b7ed98cf6c42 | | trustor_user_id | 165982a609964aa78214643b4d3870c0 | +----------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+