Get servers REST reply does not have marker when default limit is reached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Steven Kaufer | ||
Icehouse |
Fix Released
|
High
|
Attila Fazekas |
Bug Description
Both the /servers and /servers/details APIs support pagination. When the request includes the "limit" parameters, then a "next" link is included in the reply if the number of servers that match the query is greater than or equal to the limit.
The problem occurs when the caller does not include the limit parameter but the total number of servers is greater than or equal to the default "CONF.osapi_
The fix for this is to include the "next" link when the total number of servers is greater than or equal to the default limit, even if the "limit" parameter is not supplied.
The documentation also says that the "next" link is required: http://
The fix appears to be in the _get_collection
link is included if the total number of items returned equals the minimum of either the "limit" paramater or the "CONF.osapi_
Changed in nova: | |
assignee: | nobody → Steven Kaufer (kaufer) |
tags: | added: api |
description: | updated |
Changed in nova: | |
importance: | Undecided → High |
tags: | added: icehouse-rc-potential |
tags: |
added: icehouse-backport-potential removed: icehouse-rc-potential |
Changed in nova: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | juno-1 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/78800
Review: https:/