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