++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=8aeb0c91f1b94db1b36402057aa0553d + openstack domain show 8aeb0c91f1b94db1b36402057aa0553d +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | description | Service Domain for RegionOne/heat | | enabled | True | | id | 8aeb0c91f1b94db1b36402057aa0553d | | name | heat | | options | {} | | tags | [] | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=8aeb0c91f1b94db1b36402057aa0553d --description 'Service User for RegionOne/heat' --password=Mzr59D0VQE6O9cndmZp1enOKmjx0cTIb heat-stack-user-RegionOne + SERVICE_OS_USERID=49495d4cc9284103885440383a115e9f + openstack user set --password=Mzr59D0VQE6O9cndmZp1enOKmjx0cTIb 49495d4cc9284103885440383a115e9f + openstack user show 49495d4cc9284103885440383a115e9f +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | 8aeb0c91f1b94db1b36402057aa0553d | | email | None | | enabled | True | | id | 49495d4cc9284103885440383a115e9f | | name | heat-stack-user-RegionOne | | description | Service User for RegionOne/heat | | password_expires_at | None | +---------------------+----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=740248c831b94f478246e3c30f6625ad + openstack role add --domain=8aeb0c91f1b94db1b36402057aa0553d --user=49495d4cc9284103885440383a115e9f --user-domain=8aeb0c91f1b94db1b36402057aa0553d 740248c831b94f478246e3c30f6625ad + openstack role assignment list --role=740248c831b94f478246e3c30f6625ad --user-domain=8aeb0c91f1b94db1b36402057aa0553d --user=49495d4cc9284103885440383a115e9f +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 740248c831b94f478246e3c30f6625ad | 49495d4cc9284103885440383a115e9f | | | 8aeb0c91f1b94db1b36402057aa0553d | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+