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