++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=0245cc3e53bb4c119a54a66323abf028 + openstack domain show 0245cc3e53bb4c119a54a66323abf028 +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | description | Service Domain for RegionOne/heat | | enabled | True | | id | 0245cc3e53bb4c119a54a66323abf028 | | name | heat | | options | {} | | tags | [] | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=0245cc3e53bb4c119a54a66323abf028 --description 'Service User for RegionOne/heat' --password=hpXYFHvF9yh8uwtVqegGM1vv0tOCkN9n heat-stack-user-RegionOne + SERVICE_OS_USERID=b2e82026a12347239e74a3c654f979c6 + openstack user set --password=hpXYFHvF9yh8uwtVqegGM1vv0tOCkN9n b2e82026a12347239e74a3c654f979c6 + openstack user show b2e82026a12347239e74a3c654f979c6 +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | 0245cc3e53bb4c119a54a66323abf028 | | email | None | | enabled | True | | id | b2e82026a12347239e74a3c654f979c6 | | name | heat-stack-user-RegionOne | | description | Service User for RegionOne/heat | | password_expires_at | None | +---------------------+----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=b176b263199748eba79093aafdfbafe6 + openstack role add --domain=0245cc3e53bb4c119a54a66323abf028 --user=b2e82026a12347239e74a3c654f979c6 --user-domain=0245cc3e53bb4c119a54a66323abf028 b176b263199748eba79093aafdfbafe6 + openstack role assignment list --role=b176b263199748eba79093aafdfbafe6 --user-domain=0245cc3e53bb4c119a54a66323abf028 --user=b2e82026a12347239e74a3c654f979c6 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | b176b263199748eba79093aafdfbafe6 | b2e82026a12347239e74a3c654f979c6 | | | 0245cc3e53bb4c119a54a66323abf028 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+