++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=01f6f8d48a254a06bb07b628f06487c4 + openstack domain show 01f6f8d48a254a06bb07b628f06487c4 +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | id | 01f6f8d48a254a06bb07b628f06487c4 | | name | heat | | enabled | True | | description | Service Domain for RegionOne/heat | | options | {} | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=01f6f8d48a254a06bb07b628f06487c4 --description 'Service User for RegionOne/heat' --password=PafLSggdRsVV03fazUjewRqBBBp8u23v heat-stack-user-RegionOne + SERVICE_OS_USERID=2d201fef4f91481daa07c6026ea3f6cf + openstack user set --password=PafLSggdRsVV03fazUjewRqBBBp8u23v 2d201fef4f91481daa07c6026ea3f6cf + openstack user show 2d201fef4f91481daa07c6026ea3f6cf +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | 01f6f8d48a254a06bb07b628f06487c4 | | email | None | | enabled | True | | id | 2d201fef4f91481daa07c6026ea3f6cf | | 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=cd289af917884cdcbfecf09fead0c920 + openstack role add --domain=01f6f8d48a254a06bb07b628f06487c4 --user=2d201fef4f91481daa07c6026ea3f6cf --user-domain=01f6f8d48a254a06bb07b628f06487c4 cd289af917884cdcbfecf09fead0c920 + openstack role assignment list --role=cd289af917884cdcbfecf09fead0c920 --user-domain=01f6f8d48a254a06bb07b628f06487c4 --user=2d201fef4f91481daa07c6026ea3f6cf +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | cd289af917884cdcbfecf09fead0c920 | 2d201fef4f91481daa07c6026ea3f6cf | | | 01f6f8d48a254a06bb07b628f06487c4 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+