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