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