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