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