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