++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=f07451b34d174d24a51cce42e7f57459 + openstack domain show f07451b34d174d24a51cce42e7f57459 +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | id | f07451b34d174d24a51cce42e7f57459 | | name | magnum | | enabled | True | | description | Service Domain for RegionOne/magnum | | options | {} | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=f07451b34d174d24a51cce42e7f57459 --description 'Service User for RegionOne/magnum' --password=Cs5pZ0UWg0K8xJcnsQ8yI3grewRRnlht magnum-domain-RegionOne + SERVICE_OS_USERID=a23aab09269e40bca333ecc73fa498ae + openstack user set --password=Cs5pZ0UWg0K8xJcnsQ8yI3grewRRnlht a23aab09269e40bca333ecc73fa498ae + openstack user show a23aab09269e40bca333ecc73fa498ae +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | f07451b34d174d24a51cce42e7f57459 | | email | None | | enabled | True | | id | a23aab09269e40bca333ecc73fa498ae | | name | magnum-domain-RegionOne | | description | Service User for RegionOne/magnum | | password_expires_at | None | | options | {} | +---------------------+-----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=cc1441bb0cc343319c7abb5c3f0dc3ba + openstack role add --domain=f07451b34d174d24a51cce42e7f57459 --user=a23aab09269e40bca333ecc73fa498ae --user-domain=f07451b34d174d24a51cce42e7f57459 cc1441bb0cc343319c7abb5c3f0dc3ba + openstack role assignment list --role=cc1441bb0cc343319c7abb5c3f0dc3ba --user-domain=f07451b34d174d24a51cce42e7f57459 --user=a23aab09269e40bca333ecc73fa498ae +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | cc1441bb0cc343319c7abb5c3f0dc3ba | a23aab09269e40bca333ecc73fa498ae | | | f07451b34d174d24a51cce42e7f57459 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+