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