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