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