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