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