++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/heat' heat + SERVICE_OS_DOMAIN_ID=0e9a8230a5bb4ddcaaee049c57c9d44c + openstack domain show 0e9a8230a5bb4ddcaaee049c57c9d44c +-------------+-----------------------------------+ | Field | Value | +-------------+-----------------------------------+ | description | Service Domain for RegionOne/heat | | enabled | True | | id | 0e9a8230a5bb4ddcaaee049c57c9d44c | | name | heat | | options | {} | | tags | [] | +-------------+-----------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=0e9a8230a5bb4ddcaaee049c57c9d44c --description 'Service User for RegionOne/heat' --password=cDfvlaCpbEzLL7O1YNii7sT8550VHVgu heat-stack-user-RegionOne + SERVICE_OS_USERID=49fa242e54564b438393daead643b694 + openstack user set --password=cDfvlaCpbEzLL7O1YNii7sT8550VHVgu 49fa242e54564b438393daead643b694 + openstack user show 49fa242e54564b438393daead643b694 +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | None | | domain_id | 0e9a8230a5bb4ddcaaee049c57c9d44c | | email | None | | enabled | True | | id | 49fa242e54564b438393daead643b694 | | name | heat-stack-user-RegionOne | | description | Service User for RegionOne/heat | | password_expires_at | None | +---------------------+----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=cf76fb11f0234d28aafb0b0cf71b1199 + openstack role add --domain=0e9a8230a5bb4ddcaaee049c57c9d44c --user=49fa242e54564b438393daead643b694 --user-domain=0e9a8230a5bb4ddcaaee049c57c9d44c cf76fb11f0234d28aafb0b0cf71b1199 + openstack role assignment list --role=cf76fb11f0234d28aafb0b0cf71b1199 --user-domain=0e9a8230a5bb4ddcaaee049c57c9d44c --user=49fa242e54564b438393daead643b694 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | cf76fb11f0234d28aafb0b0cf71b1199 | 49fa242e54564b438393daead643b694 | | | 0e9a8230a5bb4ddcaaee049c57c9d44c | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+