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