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