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