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