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