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