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