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