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