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