yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #57698
[Bug 1632742] [NEW] /v2 route doesn't exist
Public bug reported:
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$
** Affects: glance
Importance: Undecided
Status: Incomplete
** Tags: api documentation
** Tags added: api documentation
--
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:
Incomplete
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
Follow ups