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