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