nova/nova
Matt Riedemann 344029b94a Raise MarkerNotFound if BuildRequestList.get_by_filters doesn't find marker
For some reason, probably because build requests are meant to be short lived
and we don't get a lot of bugs about paging misbehavior, when paging instances
with a marker, we didn't raise MarkerNotFound if we didn't find the marker in
the list of build requests. Doing so would match what we do when paging over
cells and listing instances using a marker. Once we find the marker, be that
in build_requests, or one of the cells, we need to set the marker to None to
stop looking for it elsewhere if we have more space to fill our limit.

For example, see change I8a957bebfcecd6ac712103c346e028d80f1ecd7c.

This patch fixes the issue by raising MarkerNotFound from BuildRequestList
get_by_filters if there is a marker and we didn't find a build request for
it. The compute API get_all() method handles that as normal and continues
looking for the marker in one of the cells.

Conflicts:
      nova/tests/unit/compute/test_compute_api.py

NOTE(mriedem): The conflicts are due to not having
3e37c2e10e nor
d5244f2fae in Pike.

Change-Id: I1aa3ca6cc70cef65d24dec1e7db9491c9b73f7ab
Closes-Bug: #1737856
(cherry picked from commit 1706e39891)
2018-01-03 12:38:15 -05:00
..
CA
api Merge "[placement] Fix an error message in API validation" into stable/pike 2017-12-21 19:46:28 +00:00
cells Merge "Handle uuids in os-hypervisors API" 2017-07-20 01:03:27 +00:00
cmd Fix TypeError in nova-manage db archive_deleted_rows 2017-12-05 09:20:27 -05:00
common
compute Raise MarkerNotFound if BuildRequestList.get_by_filters doesn't find marker 2018-01-03 12:38:15 -05:00
conductor Merge "Pass the correct image to build_request_spec in conductor.rebuild_instance" into stable/pike 2017-12-15 17:15:10 +00:00
conf Document the real behavior of notify_on_state_change 2017-11-21 15:50:30 +01:00
console Merge "Remove translation of log messages" 2017-08-10 11:39:03 +00:00
consoleauth Merge "Remove translation of log messages" 2017-08-10 11:39:03 +00:00
db Make request_spec.spec MediumText 2017-12-18 10:37:25 -05:00
hacking Remove unused variable 2017-06-12 18:19:57 +07:00
image Remove translation of log messages 2017-07-18 09:03:39 +00:00
ipv6
keymgr Remove key_manager.api_class hack 2017-07-17 17:49:08 -04:00
locale Imported Translations from Zanata 2017-08-10 11:34:33 +00:00
network Merge "Handle exception on adding secgroup" into stable/pike 2017-12-14 20:20:44 +00:00
notifications Fix sending legacy instance.update notification 2017-10-10 13:20:34 -04:00
objects Raise MarkerNotFound if BuildRequestList.get_by_filters doesn't find marker 2018-01-03 12:38:15 -05:00
pci Modify PciPassthroughFilter to accept lists 2017-04-11 19:49:07 +00:00
policies Merge "Add policy granularity to the Flavors API" 2017-08-10 11:47:12 +00:00
scheduler Fix doubling allocations on rebuild 2017-12-05 11:29:15 -05:00
servicegroup Fix the display of updated_at time when using memcache driver. 2017-05-26 16:48:07 +08:00
tests Raise MarkerNotFound if BuildRequestList.get_by_filters doesn't find marker 2018-01-03 12:38:15 -05:00
virt Merge "propagate OSError to MigrationPreCheckError" into stable/pike 2017-12-15 16:11:00 +00:00
vnc
volume Translate the return value of attachment_create and _update 2017-07-25 21:16:03 -04:00
__init__.py
availability_zones.py Avoid lazy-load error when getting instance AZ 2017-05-25 15:46:22 -04:00
baserpc.py
block_device.py db: Add attachment_id to block_device_mapping 2017-03-16 15:26:33 -04:00
cache_utils.py remove log translation tags from nova.cells 2017-04-10 14:48:07 +00:00
config.py
context.py Regenerate context during targeting 2017-10-17 00:55:48 +00:00
crypto.py
debugger.py
exception.py Fix 409 handling in report client when deleting inventory 2017-08-01 17:58:29 -04:00
exception_wrapper.py Remove **kwargs passing in payload __init__ 2017-06-08 08:50:40 +00:00
filters.py
hooks.py
i18n.py
loadables.py
manager.py
policy.py Add policy granularity to the Flavors API 2017-07-19 15:56:47 -04:00
profiler.py
quota.py Make Quotas object favor the API database 2017-07-20 21:02:18 +00:00
rpc.py Merge "Account for compute.metrics.update in legacy notification whitelist" into stable/pike 2017-10-24 11:46:57 +00:00
safe_utils.py Allow wrapping of closures 2017-07-20 10:07:52 +01:00
service.py Fix comment for API binary name in WSGIService 2017-07-05 11:32:22 -04:00
service_auth.py
test.py Make TestRPC inherit from the base nova TestCase 2017-10-13 13:20:44 +00:00
utils.py Move the last_bytes util method to libvirt 2017-07-26 08:36:32 +10:00
version.py
weights.py Correct some spelling errors 2017-02-25 02:45:30 +00:00
wsgi.py