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