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