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