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