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