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