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