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