Format of Create Image response is malformed
Bug #751798 reported by
Daryl Walleck
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Ken Pepple |
Bug Description
The Create Image request currently yields the following response:
{"status": "QUEUED", "updated": null, "name": "blargh", "created": "2011-04-
This response is missing the enclosing image field. The response should look like this:
{ "image": {"status": "QUEUED", "updated": null, "name": "blargh", "created": "2011-04-
Related branches
lp:~ken-pepple/nova/lp751798
- Jay Pipes (community): Approve
- Brian Waldon (community): Approve
- justinsb (community): Approve
- Eldar Nugaev (community): Approve
- Ilya Alekseyev (community): Approve
-
Diff: 110 lines (+23/-8)3 files modifiednova/api/openstack/images.py (+1/-1)
nova/api/openstack/views/images.py (+15/-2)
nova/tests/api/openstack/test_images.py (+7/-5)
Changed in nova: | |
assignee: | nobody → Ken Pepple (ken-pepple) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-1 |
Changed in nova: | |
milestone: | diablo-1 → 2011.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Daryl --
what URL are you using to generate this problem (i.e. v1.1/images/123) ? I think I see the problem in nova/api/ openstack/ images. py:133 but I can't track down the associated tests ... if I am correct, we just need to change this line:
return self.get_ builder( req).build( image, detail=True)
to this:
return dict(image= self.get_ builder( req).build( image, detail=True))
My branch with this fix (but no tests) is attached if you want to try it.