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