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