++ openstack domain create --or-show --enable -f value -c id '--description=Service Domain for RegionOne/magnum' magnum + SERVICE_OS_DOMAIN_ID=d5b9d8ea71504efdb159729a9544c652 + openstack domain show d5b9d8ea71504efdb159729a9544c652 +-------------+-------------------------------------+ | Field | Value | +-------------+-------------------------------------+ | description | Service Domain for RegionOne/magnum | | enabled | True | | id | d5b9d8ea71504efdb159729a9544c652 | | name | magnum | | options | {} | | tags | [] | +-------------+-------------------------------------+ ++ openstack user create --or-show --enable -f value -c id --domain=d5b9d8ea71504efdb159729a9544c652 --description 'Service User for RegionOne/magnum' --password=9x1sVCLOTBsweusmxuOCy9T08Kh7OoIl magnum-domain-RegionOne + SERVICE_OS_USERID=0c065507316243e8813e89f48432dd98 + openstack user set --password=9x1sVCLOTBsweusmxuOCy9T08Kh7OoIl 0c065507316243e8813e89f48432dd98 + openstack user show 0c065507316243e8813e89f48432dd98 +---------------------+-----------------------------------+ | Field | Value | +---------------------+-----------------------------------+ | default_project_id | None | | domain_id | d5b9d8ea71504efdb159729a9544c652 | | email | None | | enabled | True | | id | 0c065507316243e8813e89f48432dd98 | | 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=1ee707474e60403a93a5d1da779e9c5f + openstack role add --domain=d5b9d8ea71504efdb159729a9544c652 --user=0c065507316243e8813e89f48432dd98 --user-domain=d5b9d8ea71504efdb159729a9544c652 1ee707474e60403a93a5d1da779e9c5f + openstack role assignment list --role=1ee707474e60403a93a5d1da779e9c5f --user-domain=d5b9d8ea71504efdb159729a9544c652 --user=0c065507316243e8813e89f48432dd98 +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | System | Inherited | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+ | 1ee707474e60403a93a5d1da779e9c5f | 0c065507316243e8813e89f48432dd98 | | | d5b9d8ea71504efdb159729a9544c652 | | False | +----------------------------------+----------------------------------+-------+---------+----------------------------------+--------+-----------+