Public bug reported:

Following the networking API reference to list versions of the network
API, I can list versions from the network endpoint like this:

http://developer.openstack.org/api-ref/networking/v2/?expanded=list-api-
versions-detail

And get details on each version like this:

http://developer.openstack.org/api-ref/networking/v2/?expanded=list-api-
versions-detail,show-api-v2-details-detail#show-api-v2-details

However, in practice, using master neutron:

stack@osc:/opt/stack/neutron$ git log -1
commit 80d4df144d62ce638ca7bdd228cdd116e34b3067
Merge: 3ade301 fc93f7f
Author: Jenkins <jenk...@review.openstack.org>
Date:   Wed Oct 5 15:36:06 2016 +0000

    Merge "Relocate Flavor and ServiceProfile DB models"
stack@osc:/opt/stack/neutron$


The 2nd route to get v2.0 details fails:

stack@osc:~$ curl -g -H "X-Auth-Token: $OS_TOKEN" http://9.5.127.82:9696/ | 
json_pp
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   118  100   118    0     0  33541      0 --:--:-- --:--:-- --:--:-- 39333
{
   "versions" : [
      {
         "id" : "v2.0",
         "links" : [
            {
               "rel" : "self",
               "href" : "http://9.5.127.82:9696/v2.0";
            }
         ],
         "status" : "CURRENT"
      }
   ]
}

stack@osc:~$ curl -g -H "X-Auth-Token: $OS_TOKEN" http://9.5.127.82:9696/v2.0
404 Not Found

The resource could not be found.

--

So either the docs are wrong, or the API is busted.

It looks like this is what should handle the /v2.0 route though:

https://github.com/openstack/neutron/blob/80d4df144d62ce638ca7bdd228cdd116e34b3067/neutron/api/v2/router.py#L45

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: api api-ref

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1631466

Title:
  GEt on /v2.0 fails with a 404

Status in neutron:
  New

Bug description:
  Following the networking API reference to list versions of the network
  API, I can list versions from the network endpoint like this:

  http://developer.openstack.org/api-ref/networking/v2/?expanded=list-
  api-versions-detail

  And get details on each version like this:

  http://developer.openstack.org/api-ref/networking/v2/?expanded=list-
  api-versions-detail,show-api-v2-details-detail#show-api-v2-details

  However, in practice, using master neutron:

  stack@osc:/opt/stack/neutron$ git log -1
  commit 80d4df144d62ce638ca7bdd228cdd116e34b3067
  Merge: 3ade301 fc93f7f
  Author: Jenkins <jenk...@review.openstack.org>
  Date:   Wed Oct 5 15:36:06 2016 +0000

      Merge "Relocate Flavor and ServiceProfile DB models"
  stack@osc:/opt/stack/neutron$

  
  The 2nd route to get v2.0 details fails:

  stack@osc:~$ curl -g -H "X-Auth-Token: $OS_TOKEN" http://9.5.127.82:9696/ | 
json_pp
    % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                   Dload  Upload   Total   Spent    Left  Speed
  100   118  100   118    0     0  33541      0 --:--:-- --:--:-- --:--:-- 39333
  {
     "versions" : [
        {
           "id" : "v2.0",
           "links" : [
              {
                 "rel" : "self",
                 "href" : "http://9.5.127.82:9696/v2.0";
              }
           ],
           "status" : "CURRENT"
        }
     ]
  }

  stack@osc:~$ curl -g -H "X-Auth-Token: $OS_TOKEN" http://9.5.127.82:9696/v2.0
  404 Not Found

  The resource could not be found.

  --

  So either the docs are wrong, or the API is busted.

  It looks like this is what should handle the /v2.0 route though:

  
https://github.com/openstack/neutron/blob/80d4df144d62ce638ca7bdd228cdd116e34b3067/neutron/api/v2/router.py#L45

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to