++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=38142effb7c443e78c679448453d19a4 + openstack domain show 38142effb7c443e78c679448453d19a4 +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | description | Service Domain for RegionOne/magnum | | enabled | True | | id | 38142effb7c443e78c679448453d19a4 | | name | magnum | | options | {} | | tags | [] | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=38142effb7c443e78c679448453d19a4 --description 'Service User for RegionOne/magnum' --password=bLNa85E9hMAp0JSJQlgjUI5nJ9GaENxK magnum-domain-RegionOne + SERVICE_OS_USERID=6cfd784fc94d4f9b902caf373ead9d04 + openstack user set --password=bLNa85E9hMAp0JSJQlgjUI5nJ9GaENxK 6cfd784fc94d4f9b902caf373ead9d04 + openstack user show 6cfd784fc94d4f9b902caf373ead9d04 +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | 38142effb7c443e78c679448453d19a4 | | email | None | | enabled | True | | id | 6cfd784fc94d4f9b902caf373ead9d04 | | name | magnum-domain-RegionOne | | description | Service User for RegionOne/magnum | | password_expires_at | None | +---------------------+-----------------------------------+ ++ openstack role show -f value -c id admin + SERVICE_OS_ROLE_ID=623f7a4349e74e138357b6ba4560a458 + openstack role add --domain=38142effb7c443e78c679448453d19a4 --user=6cfd784fc94d4f9b902caf373ead9d04 --user-domain=38142effb7c443e78c679448453d19a4 623f7a4349e74e138357b6ba4560a458 + openstack role assignment list --role=623f7a4349e74e138357b6ba4560a458 --user-domain=38142effb7c443e78c679448453d19a4 --user=6cfd784fc94d4f9b902caf373ead9d04 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 623f7a4349e74e138357b6ba4560a458 | 6cfd784fc94d4f9b902caf373ead9d04 | | | 38142effb7c443e78c679448453d19a4 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+