Doing a GET on v2/images/{id}/file fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Paul Bourke |
Bug Description
(Using Devstack, Glance code as of 2013-05-20)
When attempting to download image data using the V2 api, an error occurs:
Sample CURL:
curl -i -X GET -H 'Content-Type: application/
Result:
* About to connect() to 162.209.48.224 port 9292 (#0)
* Trying 162.209.48.224...
* connected
* Connected to 162.209.48.224 (162.209.48.224) port 9292 (#0)
> GET /v2/images/
> Host: 162.209.48.224:9292
> Accept: */*
> User-Agent: python-glanceclient
> Content-Type: application/
> X-Auth-Token: ...
>
* additional stuff not fine transfer.c:1037: 0 0
* HTTP 1.1 or later with persistent connection, pipelining supported
< HTTP/1.1 500 Internal Server Error
HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain
Content-Type: text/plain
< Content-Length: 2511
Content-Length: 2511
< Date: Wed, 22 May 2013 18:36:09 GMT
Date: Wed, 22 May 2013 18:36:09 GMT
< Connection: close
Connection: close
<
Traceback (most recent call last):
File "/usr/lib/
result = self.applicatio
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/opt/stack/
return self.app(env, start_response)
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = req.get_
File "/usr/local/
application, catch_exc_
File "/usr/local/
app_iter = application(
File "/usr/local/
resp = self.call_func(req, *args, **self.kwargs)
File "/usr/local/
return self.func(req, *args, **kwargs)
File "/opt/stack/
response = self.process_
File "/opt/stack/
return method(request, image_id, image_iterator)
File "/opt/stack/
self.
File "/opt/stack/
image_
NameError: global name 'image_id' is not defined
* Closing connection #0
Looking at the _verify_metadata method, the image_id is indeed not defined. This should likely be passed as a parameter.
https:/
Changed in glance: | |
importance: | Undecided → Critical |
importance: | Critical → High |
Changed in glance: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | havana-2 → 2013.2 |
Fix proposed to branch: master /review. openstack. org/30268
Review: https:/