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