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