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