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