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