++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=c49e07339c5d40ffbdb16c1c1ac954e8 + openstack domain show c49e07339c5d40ffbdb16c1c1ac954e8 +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | description | Service Domain for RegionOne/heat | | enabled | True | | id | c49e07339c5d40ffbdb16c1c1ac954e8 | | name | heat | | options | {} | | tags | [] | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=c49e07339c5d40ffbdb16c1c1ac954e8 --description 'Service User for RegionOne/heat' --password=eGLgUQ62HWXXJUSc5j3QXWOLgUaHtsom heat-stack-user-RegionOne + SERVICE_OS_USERID=9fce34af367047c5a2c640350e23fc0f + openstack user set --password=eGLgUQ62HWXXJUSc5j3QXWOLgUaHtsom 9fce34af367047c5a2c640350e23fc0f + openstack user show 9fce34af367047c5a2c640350e23fc0f +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | c49e07339c5d40ffbdb16c1c1ac954e8 | | email | None | | enabled | True | | id | 9fce34af367047c5a2c640350e23fc0f | | name | heat-stack-user-RegionOne | | description | Service User for RegionOne/heat | | password_expires_at | None | +---------------------+----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=60f456aab6124aa3b6a23c5c91080229 + openstack role add --domain=c49e07339c5d40ffbdb16c1c1ac954e8 --user=9fce34af367047c5a2c640350e23fc0f --user-domain=c49e07339c5d40ffbdb16c1c1ac954e8 60f456aab6124aa3b6a23c5c91080229 + openstack role assignment list --role=60f456aab6124aa3b6a23c5c91080229 --user-domain=c49e07339c5d40ffbdb16c1c1ac954e8 --user=9fce34af367047c5a2c640350e23fc0f +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 60f456aab6124aa3b6a23c5c91080229 | 9fce34af367047c5a2c640350e23fc0f | | | c49e07339c5d40ffbdb16c1c1ac954e8 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+