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