← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1492085] [NEW] Cannot get API version detail of v2.1

 

Public bug reported:

We can get version ids v2.0 and v2.1 by "get list of versions" like

$ curl -g -i -X GET http://192.168.11.65:8774
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 375
Date: Fri, 04 Sep 2015 01:32:25 GMT

{"versions": [{"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://192.168.11.65:8774/v2/";, "rel": "self"}], "min_version": "", "version": "", "id": "v2.0"}, {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://192.168.11.65:8774/v2.1/";, "rel": "self"}], "min_version": "2.1", "version": "2.11", "id": "v2.1"}]}
$

and we can get v2.0 version details like:

    $ curl -g -i -X GET http://192.168.11.65:8774/v2.0
    HTTP/1.1 300 Multiple Choices
    Content-Type: application/json
    Content-Length: 453
    Date: Fri, 04 Sep 2015 01:33:36 GMT

    {"choices": [{"status": "SUPPORTED", "media-types": [{"base":
"application/json", "type":
"application/vnd.openstack.compute+json;version=2"}], "id": "v2.0",
"links": [{"href": "http://192.168.11.65:8774/v2/v2.0";, "rel":
"self"}]}, {"status": "CURRENT", "media-types": [{"base":
"application/json", "type":
"application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1",
"links": [{"href": "http://192.168.11.65:8774/v2.1/v2.0";, "rel":
"self"}]}]}


but we cannot get v2.1 version details

    $ curl -g -i -X GET http://192.168.11.65:8774/v2.1
    HTTP/1.1 401 Unauthorized
    Content-Type: text/html; charset=UTF-8
    Content-Length: 23
    Www-Authenticate: Keystone uri='http://192.168.11.65:5000'
    X-Compute-Request-Id: req-e6748244-59dc-45c7-9b27-8d00c5918df7
    Date: Fri, 04 Sep 2015 01:34:22 GMT

    Authentication required

even if passing auth, we cannot get anything

    $ curl -g -i -X GET http://192.168.11.65:8774/v2.1 -H "X-Auth-Token: ef3ac6beb4904072bca41111f45ea4f9"
    HTTP/1.1 302 Found
    Content-Type: text/plain; charset=utf8
    Location: http://192.168.11.65:8774/v2.1/
    X-Compute-Request-Id: req-2c38f680-cd51-45a0-bd04-47e3b09ff9e8
    Content-Length: 0
    Date: Fri, 04 Sep 2015 01:35:35 GMT

** Affects: nova
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1492085

Title:
  Cannot get API version detail of v2.1

Status in OpenStack Compute (nova):
  New

Bug description:
  We can get version ids v2.0 and v2.1 by "get list of versions" like

  $ curl -g -i -X GET http://192.168.11.65:8774
  HTTP/1.1 200 OK
  Content-Type: application/json
  Content-Length: 375
  Date: Fri, 04 Sep 2015 01:32:25 GMT

  {"versions": [{"status": "SUPPORTED", "updated": "2011-01-21T11:33:21Z", "links": [{"href": "http://192.168.11.65:8774/v2/";, "rel": "self"}], "min_version": "", "version": "", "id": "v2.0"}, {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://192.168.11.65:8774/v2.1/";, "rel": "self"}], "min_version": "2.1", "version": "2.11", "id": "v2.1"}]}
  $

  and we can get v2.0 version details like:

      $ curl -g -i -X GET http://192.168.11.65:8774/v2.0
      HTTP/1.1 300 Multiple Choices
      Content-Type: application/json
      Content-Length: 453
      Date: Fri, 04 Sep 2015 01:33:36 GMT

      {"choices": [{"status": "SUPPORTED", "media-types": [{"base":
  "application/json", "type":
  "application/vnd.openstack.compute+json;version=2"}], "id": "v2.0",
  "links": [{"href": "http://192.168.11.65:8774/v2/v2.0";, "rel":
  "self"}]}, {"status": "CURRENT", "media-types": [{"base":
  "application/json", "type":
  "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1",
  "links": [{"href": "http://192.168.11.65:8774/v2.1/v2.0";, "rel":
  "self"}]}]}

  
  but we cannot get v2.1 version details

      $ curl -g -i -X GET http://192.168.11.65:8774/v2.1
      HTTP/1.1 401 Unauthorized
      Content-Type: text/html; charset=UTF-8
      Content-Length: 23
      Www-Authenticate: Keystone uri='http://192.168.11.65:5000'
      X-Compute-Request-Id: req-e6748244-59dc-45c7-9b27-8d00c5918df7
      Date: Fri, 04 Sep 2015 01:34:22 GMT

      Authentication required

  even if passing auth, we cannot get anything

      $ curl -g -i -X GET http://192.168.11.65:8774/v2.1 -H "X-Auth-Token: ef3ac6beb4904072bca41111f45ea4f9"
      HTTP/1.1 302 Found
      Content-Type: text/plain; charset=utf8
      Location: http://192.168.11.65:8774/v2.1/
      X-Compute-Request-Id: req-2c38f680-cd51-45a0-bd04-47e3b09ff9e8
      Content-Length: 0
      Date: Fri, 04 Sep 2015 01:35:35 GMT

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1492085/+subscriptions


Follow ups