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