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