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