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