Glance client not properly catching HTTP 300 Multiple Choice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Jay Pipes | ||
Diablo |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
I was testing Glance auth using keystone. After some help finding the good param, I got this error :
> glance -d -v index
/usr/local/
import pkg_resources
Traceback (most recent call last):
File "/usr/local/
pkg_
File "/usr/lib/
self.
File "/usr/lib/
execfile(
File "/usr/local/
result = command(options, args)
File "/usr/local/
ret = func(*args, **kwargs)
File "/usr/local/
print_
File "/usr/local/
images = client.
File "/usr/local/
res = self.do_
File "/usr/local/
method, action, body=body, headers=headers, params=params)
File "/usr/local/
raise Exception("Unknown error occurred! %s" % res.read())
Exception: Unknown error occurred! {"versions": [{"status": "CURRENT", "id": "v1.1", "links": [{"href": "http://
Here the sampledata.py, I used for keystone : http://
And the vars fill with :
OS_AUTH_USER=admin
OS_AUTH_KEY=secrete
OS_AUTH_TENANT=test
OS_AUTH_URL=http://
OS_AUTH_
Jay Pipes (jaypipes) who help me think that it's due to a bug in Glance client. I open this bug so we can track it.
Changed in glance: | |
assignee: | nobody → Jay Pipes (jaypipes) |
status: | Triaged → In Progress |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | essex-1 → 2012.1 |
In glance/ common/ client. py, in the client's _do_request() method, need to catch a 300 error as well.