yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #31748
[Bug 1440170] Re: List images passing id as a sort_key returns an incorrectly ordered list of images
Tested this with the latest version of Glance. This no longer appears
to be an issue and can be closed.
** Changed in: glance
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1440170
Title:
List images passing id as a sort_key returns an incorrectly ordered
list of images
Status in OpenStack Image Registry and Delivery Service (Glance):
Invalid
Bug description:
Overview:
When attempting a list images request passing 'id' as a sort_key returns a list of images that are not in the correct order. Even when passing the sort_dir of asc or desc, the order is still incorrect.
Steps to reproduce:
1) List images passing 'id' as a sort_key via:
curl -i '<endpoint>/v2/images?sort_key=id' -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>"
2) Notice that the list of images returned is not in the correct order
3) List images passing 'id' as a sort_key and asc or desc as the sort_dir via:
curl -i '<endpoint>/v2/images?sort_key=id&sort_dir=asc' -X GET -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: <token>"
4) Notice that the list of images returned is still not in the correct order
Expected:
A list of images correctly sorted by the 'id' property value
Actual:
A list of images is returned, but not correctly ordered, either asc or desc
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1440170/+subscriptions
References