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