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