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