image-list --page-size <limit> returns all images
Bug #1115677 reported by
Anita Kuno
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Invalid
|
Undecided
|
Anita Kuno |
Bug Description
A curl request with limit=5 returned all 7 images available.
-H 'Content-Type: application/json'
-H 'User-Agent: python-
http://
{"images": [{
"status": "active", "name": "cirros-
"status": "active", "name": "cirros-
"status": "active", "name": "cirros-
"status": "queued", "name": null}, {
"status": "queued", "name": null}, {
"status": "queued", "name": null}, {
"status": "queued", "name": null}]}
Changed in python-glanceclient: | |
assignee: | nobody → Anita Kuno (akuno) |
To post a comment you must log in.
Investigating further, I learn with v1 api, setting page-size to 0 returns no images successfuly; setting page-size between 1 and 4 returns a 500 internal server error; and setting page-size to 5 to 7 returns all 7 images.
With v2 api, page-size any setting between 1 and 7, returns all 7 images. Setting page-size to 0 returns 0 images.