← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1632742] Re: /v2 route doesn't exist

 

I must've had this sitting open for a while and completely missed Sean's
update.

We discussed this at the glance meeting today and decided to agree with
Sean's position, namely that a 404 is appropriate.

It could make sense to have the versions returned, or it could make
sense to have a JSON-home type document returned.  So we don't want to
be precipitate in deciding what (if anything) to return.

** Changed in: glance
       Status: Triaged => Won't Fix

** Changed in: glance
     Assignee: Brian Rosmaita (brian-rosmaita) => (unassigned)

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

Title:
  /v2 route doesn't exist

Status in Glance:
  Won't Fix

Bug description:
  Looking at the api-ref docs, I'm able to list versions of the image
  API available in a cloud (I'm using a devstack created from master as
  of last week):

  http://developer.openstack.org/api-
  ref/image/versions/index.html?expanded=id1-detail#id1

  stack@osc:/opt/stack/glance$ git log -1
  commit 9bd264cd034f996852372ae0ca988bd67b98cf9a
  Merge: 2de3caf ce6cb2d
  Author: Jenkins <jenkins@xxxxxxxxxxxxxxxxxxxx>
  Date:   Tue Oct 4 02:28:10 2016 +0000

      Merge "[api-ref] configure LogABug feature"
  stack@osc:/opt/stack/glance$

  
  I'm able to list versions for the image endpoint:

  stack@osc:/opt/stack/glance$ curl -s -H "X-Auth-Token: $OS_TOKEN" http://9.5.127.82:9292 | json_pp
  {
     "versions" : [
        {
           "id" : "v2.4",
           "status" : "CURRENT",
           "links" : [
              {
                 "rel" : "self",
                 "href" : "http://9.5.127.82:9292/v2/";
              }
           ]
        },
        {
           "links" : [
              {
                 "rel" : "self",
                 "href" : "http://9.5.127.82:9292/v2/";
              }
           ],
           "id" : "v2.3",
           "status" : "SUPPORTED"
        },
        {
           "links" : [
              {
                 "rel" : "self",
                 "href" : "http://9.5.127.82:9292/v2/";
              }
           ],
           "status" : "SUPPORTED",
           "id" : "v2.2"
        },
        {
           "id" : "v2.1",
           "status" : "SUPPORTED",
           "links" : [
              {
                 "rel" : "self",
                 "href" : "http://9.5.127.82:9292/v2/";
              }
           ]
        },
        {
           "status" : "SUPPORTED",
           "id" : "v2.0",
           "links" : [
              {
                 "href" : "http://9.5.127.82:9292/v2/";,
                 "rel" : "self"
              }
           ]
        },
        {
           "links" : [
              {
                 "href" : "http://9.5.127.82:9292/v1/";,
                 "rel" : "self"
              }
           ],
           "status" : "DEPRECATED",
           "id" : "v1.1"
        },
        {
           "links" : [
              {
                 "rel" : "self",
                 "href" : "http://9.5.127.82:9292/v1/";
              }
           ],
           "id" : "v1.0",
           "status" : "DEPRECATED"
        }
     ]
  }
  stack@osc:/opt/stack/glance$

  
  I'm able to list the v1 route which is just a list of images:

  stack@osc:/opt/stack/glance$ curl -s -H "X-Auth-Token: $OS_TOKEN" http://9.5.127.82:9292/v1/ | json_pp                                                               {
     "images" : [
        {
           "size" : 25165824,
           "name" : "cirros-0.3.4-x86_64-uec",
           "id" : "c8af19ff-cebc-4112-a237-78dcd19e588c",
           "disk_format" : "ami",
           "checksum" : "eb9139e4942121f22bbc2afc0400b2a4",
           "container_format" : "ami"
        },
        {
           "disk_format" : "ari",
           "container_format" : "ari",
           "checksum" : "be575a2b939972276ef675752936977f",
           "size" : 3740163,
           "name" : "cirros-0.3.4-x86_64-uec-ramdisk",
           "id" : "ff195fc4-c039-43b5-acca-501aba68aba2"
        },
        {
           "size" : 4979632,
           "name" : "cirros-0.3.4-x86_64-uec-kernel",
           "id" : "08463073-3460-4b5f-92cc-ade974936e96",
           "disk_format" : "aki",
           "container_format" : "aki",
           "checksum" : "8a40c862b5735975d82605c1dd395796"
        }
     ]
  }

  
  But I'm not able to list the v2 route:

  stack@osc:/opt/stack/glance$ curl -s -H "X-Auth-Token: $OS_TOKEN" http://9.5.127.82:9292/v2/
  404 Not Found

  The resource could not be found.

     stack@osc:/opt/stack/glance$

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


References