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