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