Pagination of instances works incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Dan Smith |
Bug Description
Listing of instances returns a limited number of resources. To list all instances, "marker" parameter can be used to list all the pages, i.e to obtain all the servers.
# novaclient implements the same logic for `limit=-1`.
results = []
marker = None
while True:
servers = list_server(marker)
if not servers:
break
marker = results[-1].id
For some reasons, it stopped working. Listing instances starting from X instance returns a list of resources with X instance in it.
Caught by the scenario when 2 VMs are created at almost the same time (<1sec between requests) in the same tenant by the same user, but with different names.
description: | updated |
Changed in nova: | |
importance: | Undecided → High |
tags: | added: api cells |
Fix proposed to branch: master /review. openstack. org/510140
Review: https:/