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