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