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