A v3 API request of "GET /versions/:(id)" occurs "Unexpected API Error."

Bug #1281936 reported by Masayuki Igawa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Masayuki Igawa

Bug Description

When I request a v3 API request of "GET /versions/:(id)" occurs "Unexpected API Error.".
--------------------
$ curl -i 'http://192.168.1.36:8774/v3/versions/123' -X GET -H "X-Auth-Project-Id: demo" -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: <TOKEN>"

HTTP/1.1 500 Internal Server Error
Content-Length: 193
Content-Type: application/json; charset=UTF-8
X-Compute-Request-Id: req-baf6f903-b3f1-4c80-9e59-93f1440609a4
Date: Wed, 19 Feb 2014 07:08:13 GMT

{"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<type 'exceptions.TypeError'>", "code": 500}}
--------------------

nova-api logged an error:
--------------------
2014-02-19 16:14:37.075 ERROR nova.api.openstack.extensions [req-282a97a5-8f42-4410-a8dd-ff97457d0241 admin demo] Unexpected exception in API method
2014-02-19 16:14:37.075 TRACE nova.api.openstack.extensions Traceback (most recent call last):
2014-02-19 16:14:37.075 TRACE nova.api.openstack.extensions File "/opt/stack/nova/nova/api/openstack/extensions.py", line 472, in wrapped
2014-02-19 16:14:37.075 TRACE nova.api.openstack.extensions return f(*args, **kwargs)
2014-02-19 16:14:37.075 TRACE nova.api.openstack.extensions TypeError: show() got an unexpected keyword argument 'id'
2014-02-19 16:14:37.075 TRACE nova.api.openstack.extensions
--------------------

Tags: api
Changed in nova:
assignee: nobody → Sridhar Gaddam (sridhargaddam)
Revision history for this message
Masayuki Igawa (igawa) wrote :

@Sridahr: Sorry. I have already submitted a patch for that.
https://review.openstack.org/#/c/74622/

Changed in nova:
assignee: Sridhar Gaddam (sridhargaddam) → Masayuki Igawa (igawa)
Matt Riedemann (mriedem)
Changed in nova:
status: New → In Progress
tags: added: api
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/74622
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=028217a0dc6cdc33a37cc303ab9ffb6633036cfe
Submitter: Jenkins
Branch: master

commit 028217a0dc6cdc33a37cc303ab9ffb6633036cfe
Author: Masayuki Igawa <email address hidden>
Date: Wed Feb 19 16:25:30 2014 +0900

    Fix "computeFault" when v3 API "GET /versions/:(id)" is called

    Usually, the API of "GET /versions/:(id)" is not called directly.
    However we can call it directly. So this commit fixes it to work
    without the "computeFault ... Unexpected API Error".

    Change-Id: Ic5513e5bce214d6fe90a9ccd7d056ac1dd0a4d19
    Closes-Bug: #1281936

Changed in nova:
status: In Progress → Fix Committed
Changed in nova:
milestone: none → icehouse-rc1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: icehouse-rc1 → 2014.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.