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