++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=2cccc4d07c194537bfcd6167c0254ddf + openstack domain show 2cccc4d07c194537bfcd6167c0254ddf +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | description | Service Domain for RegionOne/heat | | enabled | True | | id | 2cccc4d07c194537bfcd6167c0254ddf | | name | heat | | options | {} | | tags | [] | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=2cccc4d07c194537bfcd6167c0254ddf --description 'Service User for RegionOne/heat' --password=Ep69NV3CT0Gpj4yHS7M2I2TXC5ZCnwas heat-stack-user-RegionOne + SERVICE_OS_USERID=a062856c2a35417ab8fd397bdd1333b0 + openstack user set --password=Ep69NV3CT0Gpj4yHS7M2I2TXC5ZCnwas a062856c2a35417ab8fd397bdd1333b0 + openstack user show a062856c2a35417ab8fd397bdd1333b0 +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | 2cccc4d07c194537bfcd6167c0254ddf | | email | None | | enabled | True | | id | a062856c2a35417ab8fd397bdd1333b0 | | name | heat-stack-user-RegionOne | | description | Service User for RegionOne/heat | | password_expires_at | None | +---------------------+----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=1e59d4ca4f614fb2bc6159a11d293f3c + openstack role add --domain=2cccc4d07c194537bfcd6167c0254ddf --user=a062856c2a35417ab8fd397bdd1333b0 --user-domain=2cccc4d07c194537bfcd6167c0254ddf 1e59d4ca4f614fb2bc6159a11d293f3c + openstack role assignment list --role=1e59d4ca4f614fb2bc6159a11d293f3c --user-domain=2cccc4d07c194537bfcd6167c0254ddf --user=a062856c2a35417ab8fd397bdd1333b0 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 1e59d4ca4f614fb2bc6159a11d293f3c | a062856c2a35417ab8fd397bdd1333b0 | | | 2cccc4d07c194537bfcd6167c0254ddf | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+