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