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