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