Comment 2 for bug 1441922

Revision history for this message
Jin Liu (jin-t) wrote : Re: Cinder volume command with keystone V3 authentication return BadRequest: Malformed request url

When delete the piece code of project_id checking in wsgi.py, my "openstack volume create" and "openstack volume list" all completed successfully. I suggest we may need handle both keystone v2 and v3 authentication well. Here is the print of request.environ in wsgi.py for reference.

HTTP_X_TENANT_NAME': None
'HTTP_X_ROLE': u'admin'
'HTTP_X_USER_ID': u'e3b7f7511f234afa926d8b905478ff85'
'HTTP_X_AUTH_TOKEN': '9902e483ac944b99836cd9592dbe0cdb'
'HTTP_X_DOMAIN_NAME': u'Default'
'HTTP_X_DOMAIN_ID': u'default'
'HTTP_X_PROJECT_DOMAIN_ID': None
'HTTP_X_TENANT_ID': None
'HTTP_X_PROJECT_DOMAIN_NAME': None
'HTTP_X_USER_DOMAIN_NAME': u'Default'
'HTTP_X_TENANT': None
'HTTP_X_USER': u'admin'
'HTTP_X_USER_DOMAIN_ID': u'default'
'HTTP_X_PROJECT_NAME': None
'HTTP_X_PROJECT_ID': None
'HTTP_X_USER_NAME': u'admin'