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