cinder v2 volume list API does not create "next" link correctly for pagination
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Vincent Hou |
Bug Description
According to the pagination documentation at http://
However the "next" link is provided if the returned number of items is exactly the page size, i.e if there are 3 volumes, the following query will list all 3 volumes, but also give a "next" link for more volumes, which if used, retrieves 0 items.
This makes it hard to try and do pagination for clients like Horizon.
Example query:
http://
Response:
{
"volumes_
"href": "http://
"rel": "next"
}],
"volumes": [{
"id": "2d9e16f9-
"links": [{
"href": "http://
"rel": "self"
}, {
"href": "http://
"rel": "bookmark"
}],
"name": "vol10"
}, {
"id": "ead262df-
"links": [{
"href": "http://
"rel": "self"
}, {
"href": "http://
"rel": "bookmark"
}],
"name": "vol9"
}, {
"id": "c08b1929-
"links": [{
"href": "http://
"rel": "self"
}, {
"href": "http://
"rel": "bookmark"
}],
"name": "vol8"
}]
}
summary: |
- cinder volume list API does not create "next" link correctly for + cinder v2 volume list API does not create "next" link correctly for pagination |
Changed in cinder: | |
assignee: | nobody → Vincent Hou (houshengbo) |
status: | New → Confirmed |
Changed in cinder: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | kilo-3 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/131915
Review: https:/