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