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