nova/nova/tests/unit/compute
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
..
monitors Allow monitor plugins to set own metric object 2016-06-27 14:38:32 +05:30
__init__.py
eventlet_utils.py
fake_resource_tracker.py rt: explicitly pass compute node to _update() 2017-01-12 11:30:03 -08:00
test_claims.py rt: use a single ResourceTracker object instance 2017-01-16 14:09:25 -05:00
test_compute.py Get original image_id from volume for volume-backed instance rebuild 2017-12-05 09:41:16 -05:00
test_compute_api.py Raise MarkerNotFound if BuildRequestList.get_by_filters doesn't find marker 2018-01-03 12:38:15 -05:00
test_compute_cells.py Get original image_id from volume for volume-backed instance rebuild 2017-12-05 09:41:16 -05:00
test_compute_mgr.py Merge "Remove dest node allocations during live migration rollback" into stable/pike 2017-10-24 12:49:51 +00:00
test_compute_utils.py Handle deleted instances when refreshing the info_cache 2017-09-21 13:51:25 +00:00
test_compute_xen.py conf: Remove config option compute_ manager 2016-12-08 20:05:52 +08:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Handle uuid in HostAPI.compute_node_get 2017-06-19 09:57:49 -04:00
test_keypairs.py Stop using mox stubs in test_keypairs.py 2017-06-26 14:50:40 +09:00
test_provider_tree.py placement: adds ProviderTree for nested resources 2017-06-26 11:33:38 +01:00
test_resource_tracker.py Avoid deleting allocations for instances being built 2017-11-06 07:05:55 -05:00
test_rpcapi.py conf: remove *_topic config opts 2017-07-17 21:27:02 -07:00
test_shelve.py Call terminate_connection when shelve_offloading 2017-09-14 22:39:01 +00:00
test_stats.py Address nits in Ia2296302 2016-03-08 16:48:08 +00:00
test_virtapi.py Remove mox from nova/tests/unit/compute/test_virtapi.py 2016-11-28 08:52:00 +00:00