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