nova rest /v2/ call returns v1.1 documentation

Bug #1076109 reported by Sean Dague
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Sean Dague

Bug Description

If you make a call to nova's /v2/ REST API you get the following data returned:

{"version": {"status": "CURRENT", "updated": "2011-01-21T11:33:21Z", "media-types": [{"base": "application/xml", "type": "application/vnd.openstack.compute+xml;version=2"}, {"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0", "links": [{"href": "http://9.114.219.71:8774/v2/", "rel": "self"}, {"href": "http://docs.openstack.org/api/openstack-compute/1.1/os-compute-devguide-1.1.pdf", "type": "application/pdf", "rel": "describedby"}, {"href": "http://docs.openstack.org/api/openstack-compute/1.1/wadl/os-compute-1.1.wadl", "type": "application/vnd.sun.wadl+xml", "rel": "describedby"}]}}

Notice that the application/pdf and application/vnd.sun.wadl+xml are both 1.1 urls. Additionally those urls are currently 404.

Tags: nova-v2-bug
Sean Dague (sdague)
Changed in nova:
importance: Undecided → Medium
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Revision history for this message
Sean Dague (sdague) wrote :

yes, though a github tree is probably not what we should be using, was chatting with Anne about this one, and will be sending out to the list for discussion.

Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-1 → grizzly-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/18988
Committed: http://github.com/openstack/nova/commit/c7221d046008f6bc980b6cb97f868e9ef8655070
Submitter: Jenkins
Branch: master

commit c7221d046008f6bc980b6cb97f868e9ef8655070
Author: Sean Dague <email address hidden>
Date: Fri Jan 4 13:01:06 2013 -0500

    update version urls to working v2 urls

    the GET /v2/ API call is documented to return urls to both
    wadl and pdf documents. However our call returned non working
    urls to 1.1 versions of those documents. Fix this.

    Also fix the unit tests to actually test the output of versions.
    Previously we were over stubbing the test_verions.py so it was
    testing only itself, and not the output you'd actually get from
    the real versions.py module.

    Renamed the variables used for the expected variables to reduce
    confusion about what is an expected variable vs. the variables
    coming from versions.py to try to ensure we don't have cicular
    always passing tests in the future.

    Fixes bug #1076109

    Change-Id: I1047b8c48ff053eed5ad4afa8eae5833f70d0893

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-2 → 2013.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.