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