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