yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #29283
[Bug 951156] Re: Limit/marker behavior for list servers/flavors/images does not paginate correctly
I think wangpan is right.
>Daryls-MacBook-Pro:tempest dwalleck$ curl -ik -H "X-Auth-Token: 6885b39a-b301-444e-93cc-77d6d2ffb48f" >https://127.0.0.1/v2/658803/flavors?limit=1&marker=6
>[1] 39431
>Daryls-MacBook-Pro:tempest dwalleck$ HTTP/1.1 200 OK
check above description. There is a `[1] 39431` exist and others don't
have. This mean the text before the `&` run background.
This bug should be marked close or invaid.
** Changed in: nova
Status: Confirmed => Invalid
--
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/951156
Title:
Limit/marker behavior for list servers/flavors/images does not
paginate correctly
Status in OpenStack Compute (Nova):
Invalid
Bug description:
When the marker parameter is passed, the expected behavior is that all
items that logically appear "after" the marker. The system is
currently returning the item that is passed as the marker as well,
which causes recursive loops when trying to create pagination through
the results, as using marker does not advance the list.
curl -ik -H "X-Auth-Token: 6885b39a-b301-444e-93cc-77d6d2ffb48f" https://127.0.0.1/v2/658803/flavors?limit=1
HTTP/1.1 200 OK
Date: Fri, 09 Mar 2012 21:24:55 GMT
Content-Length: 369
Content-Type: application/json
X-Compute-Request-Id: req-aeb76f85-23c6-43b2-ab43-3ef0a80099a5
Server: Jetty(8.0.y.z-SNAPSHOT)
{"flavors": [{"id": "6", "links": [{"href":
"https://127.0.0.1/v2/658803/flavors/6", "rel": "self"}, {"href":
"https://127.0.0.1/658803/flavors/6", "rel": "bookmark"}], "name":
"8GB instance"}], "flavors_links": [{"href":
"https://127.0.0.1/v2/658803/flavors?limit=1&marker=6", "rel":
"next"}]}
Daryls-MacBook-Pro:tempest dwalleck$ curl -ik -H "X-Auth-Token: 6885b39a-b301-444e-93cc-77d6d2ffb48f" https://127.0.0.1/v2/658803/flavors?limit=1&marker=6
[1] 39431
Daryls-MacBook-Pro:tempest dwalleck$ HTTP/1.1 200 OK
Date: Fri, 09 Mar 2012 21:25:30 GMT
Content-Length: 369
Content-Type: application/json
X-Compute-Request-Id: req-057a57f9-0b6b-42b0-935a-75d5e4e1bda7
Server: Jetty(8.0.y.z-SNAPSHOT)
{"flavors": [{"id": "6", "links": [{"href":
"https://127.0.0.1/v2/658803/flavors/6", "rel": "self"}, {"href":
"https://127.0.0.1/658803/flavors/6", "rel": "bookmark"}], "name":
"8GB instance"}], "flavors_links": [{"href":
"https://127.0.0.1/v2/658803/flavors?limit=1&marker=6", "rel":
"next"}]}
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/951156/+subscriptions