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