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