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