++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=8c464648e0044594ba8b6395d4a226a0 + openstack domain show 8c464648e0044594ba8b6395d4a226a0 +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | description | Service Domain for RegionOne/heat | | enabled | True | | id | 8c464648e0044594ba8b6395d4a226a0 | | name | heat | | options | {} | | tags | [] | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=8c464648e0044594ba8b6395d4a226a0 --description 'Service User for RegionOne/heat' --password=TWDUUNSO3K34yYXybjy0QCLnju1chXwk heat-stack-user-RegionOne + SERVICE_OS_USERID=15c02b559212468b9c86323f25d01fc3 + openstack user set --password=TWDUUNSO3K34yYXybjy0QCLnju1chXwk 15c02b559212468b9c86323f25d01fc3 + openstack user show 15c02b559212468b9c86323f25d01fc3 +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | 8c464648e0044594ba8b6395d4a226a0 | | email | None | | enabled | True | | id | 15c02b559212468b9c86323f25d01fc3 | | 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=aeb2f9da678c4bd8b6701f61af53b202 + openstack role add --domain=8c464648e0044594ba8b6395d4a226a0 --user=15c02b559212468b9c86323f25d01fc3 --user-domain=8c464648e0044594ba8b6395d4a226a0 aeb2f9da678c4bd8b6701f61af53b202 + openstack role assignment list --role=aeb2f9da678c4bd8b6701f61af53b202 --user-domain=8c464648e0044594ba8b6395d4a226a0 --user=15c02b559212468b9c86323f25d01fc3 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | aeb2f9da678c4bd8b6701f61af53b202 | 15c02b559212468b9c86323f25d01fc3 | | | 8c464648e0044594ba8b6395d4a226a0 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+