++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=49b7d56aa15144b5b9c2e44a5713b4df + openstack domain show 49b7d56aa15144b5b9c2e44a5713b4df +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | description | Service Domain for RegionOne/heat | | enabled | True | | id | 49b7d56aa15144b5b9c2e44a5713b4df | | name | heat | | options | {} | | tags | [] | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=49b7d56aa15144b5b9c2e44a5713b4df --description 'Service User for RegionOne/heat' --password=jskAMfZWnGOrYKXcVIklmXUdr3XdP6Lt heat-stack-user-RegionOne + SERVICE_OS_USERID=184c5c835821482899cd215f3716c559 + openstack user set --password=jskAMfZWnGOrYKXcVIklmXUdr3XdP6Lt 184c5c835821482899cd215f3716c559 + openstack user show 184c5c835821482899cd215f3716c559 +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | 49b7d56aa15144b5b9c2e44a5713b4df | | email | None | | enabled | True | | id | 184c5c835821482899cd215f3716c559 | | 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=a99a21a5667040949b4318a1c3a225aa + openstack role add --domain=49b7d56aa15144b5b9c2e44a5713b4df --user=184c5c835821482899cd215f3716c559 --user-domain=49b7d56aa15144b5b9c2e44a5713b4df a99a21a5667040949b4318a1c3a225aa + openstack role assignment list --role=a99a21a5667040949b4318a1c3a225aa --user-domain=49b7d56aa15144b5b9c2e44a5713b4df --user=184c5c835821482899cd215f3716c559 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | a99a21a5667040949b4318a1c3a225aa | 184c5c835821482899cd215f3716c559 | | | 49b7d56aa15144b5b9c2e44a5713b4df | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+