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