++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=e88a479176c1439a9abc76887a4ae636 + openstack domain show e88a479176c1439a9abc76887a4ae636 +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | id | e88a479176c1439a9abc76887a4ae636 | | name | magnum | | enabled | True | | description | Service Domain for RegionOne/magnum | | options | {} | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=e88a479176c1439a9abc76887a4ae636 --description 'Service User for RegionOne/magnum' --password=LQ7klDRqMU1xUNqFZ9IxMEsDjpOn4MtI magnum-domain-RegionOne + SERVICE_OS_USERID=0050f8e107ea42a4bd423952cef0704a + openstack user set --password=LQ7klDRqMU1xUNqFZ9IxMEsDjpOn4MtI 0050f8e107ea42a4bd423952cef0704a + openstack user show 0050f8e107ea42a4bd423952cef0704a +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | e88a479176c1439a9abc76887a4ae636 | | email | None | | enabled | True | | id | 0050f8e107ea42a4bd423952cef0704a | | 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=2e102ae58f0843bdbe75ca33ebe93cb8 + openstack role add --domain=e88a479176c1439a9abc76887a4ae636 --user=0050f8e107ea42a4bd423952cef0704a --user-domain=e88a479176c1439a9abc76887a4ae636 2e102ae58f0843bdbe75ca33ebe93cb8 + openstack role assignment list --role=2e102ae58f0843bdbe75ca33ebe93cb8 --user-domain=e88a479176c1439a9abc76887a4ae636 --user=0050f8e107ea42a4bd423952cef0704a +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 2e102ae58f0843bdbe75ca33ebe93cb8 | 0050f8e107ea42a4bd423952cef0704a | | | e88a479176c1439a9abc76887a4ae636 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+