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