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