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