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