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