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