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