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