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