List images through Openstack API returns HTTP 500
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Critical
|
Brian Lamar |
Bug Description
Using the following image:
wget http://
uec-publish-
I can list the images with the EC2 API with no trouble. But when I try the same thing with the Openstack API (using the openstack.compute wrapper library) it blows up. I traced through the openstack.compute API client, and it appears to be sending the right request per the OpenStack Compute DevGuide 3/1/11 (DRAFT) section 4.5.1.
'http://
or
'http://
(or the same with /images/detail).
I get back a HTTP 500 internal server error. In the nova-api log, I see that the cause of that is nova/api/
Here's the stack trace:
-------
2011-04-04 11:54:51,520 DEBUG routes.middleware [-] Matched GET /images from (pid=4135) __call__ /usr/lib/
2011-04-04 11:54:51,521 DEBUG routes.middleware [-] Route path: '/images', defaults: {'action': u'index', 'controller': <nova.api.
2011-04-04 11:54:51,521 DEBUG routes.middleware [-] Match dict: {'action': u'index', 'controller': <nova.api.
2011-04-04 11:54:51,522 ERROR nova.api.openstack [-] Caught error: 'name'
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
(nova.api.
Related branches
- Jay Pipes (community): Approve
- Josh Kearney (community): Approve
- Titan: Pending requested
-
Diff: 121 lines (+60/-7)2 files modifiednova/api/openstack/views/images.py (+5/-5)
nova/tests/api/openstack/test_images.py (+55/-2)
Changed in nova: | |
assignee: | nobody → Brian Lamar (blamar) |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
Confirmed with python-novaclient:
$ nova image-list
'name' (HTTP 500)