++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=20a93abf464c47b8bcc4b9fc9bb9027a + openstack domain show 20a93abf464c47b8bcc4b9fc9bb9027a +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | description | Service Domain for RegionOne/magnum | | enabled | True | | id | 20a93abf464c47b8bcc4b9fc9bb9027a | | name | magnum | | options | {} | | tags | [] | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=20a93abf464c47b8bcc4b9fc9bb9027a --description 'Service User for RegionOne/magnum' --password=nDbSDE1lR4AYLIf5QA67L2a9MTBp1vS7 magnum-domain-RegionOne + SERVICE_OS_USERID=08a6feb35b794c05aa25d045db97fa2f + openstack user set --password=nDbSDE1lR4AYLIf5QA67L2a9MTBp1vS7 08a6feb35b794c05aa25d045db97fa2f + openstack user show 08a6feb35b794c05aa25d045db97fa2f +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | 20a93abf464c47b8bcc4b9fc9bb9027a | | email | None | | enabled | True | | id | 08a6feb35b794c05aa25d045db97fa2f | | 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=71b33f2a45954779844d4493bdfffb54 + openstack role add --domain=20a93abf464c47b8bcc4b9fc9bb9027a --user=08a6feb35b794c05aa25d045db97fa2f --user-domain=20a93abf464c47b8bcc4b9fc9bb9027a 71b33f2a45954779844d4493bdfffb54 + openstack role assignment list --role=71b33f2a45954779844d4493bdfffb54 --user-domain=20a93abf464c47b8bcc4b9fc9bb9027a --user=08a6feb35b794c05aa25d045db97fa2f +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 71b33f2a45954779844d4493bdfffb54 | 08a6feb35b794c05aa25d045db97fa2f | | | 20a93abf464c47b8bcc4b9fc9bb9027a | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+