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