nova/nova/tests/functional
Matt Riedemann df03499843 Fix listing deleted servers with a marker
Change I1aa3ca6cc70cef65d24dec1e7db9491c9b73f7ab in Queens,
which was backported through to Newton, introduced a regression
when listing deleted servers with a marker because it assumes
that if BuildRequestList.get_by_filters does not raise
MarkerNotFound that the marker was found among the build requests
and does not account for that get_by_filters method short-circuiting
if filtering servers with deleted/cleaned/limit=0. The API code
then nulls out the marker which means you'll continue to get the
marker instance back in the results even though you shouldn't,
and that can cause an infinite loop in some client-side tooling like
nova's CLI:

  nova list --deleted --limit -1

This fixes the bug by raising MarkerNotFound from
BuildRequestList.get_by_filters if we have a marker but are
short-circuiting and returning early from the method based on
limit or filters.

Change-Id: Ic2b19c2aa06b3059ab0344b6ac56ffd62b3f755d
Closes-Bug: #1849409
2019-10-23 10:32:28 -04:00
..
api Filter migrations by user_id/project_id 2019-10-14 11:35:11 -07:00
api_sample_tests Add image caching API for aggregates 2019-10-15 21:22:31 -04:00
compute Add cache_images() to conductor 2019-10-14 11:35:11 -07:00
db Merge "Add reserved schema migrations for Ussuri" 2019-10-03 22:14:36 +00:00
libvirt Add functional tests for virtual persistent memory 2019-09-27 09:13:36 +00:00
notification_sample_tests trivial: Change name of network provided by NeutronFixture 2019-10-05 15:40:28 +01:00
regressions Fix listing deleted servers with a marker 2019-10-23 10:32:28 -04:00
wsgi nova-net: Use nova-net explicitly in functional tests 2019-10-02 12:38:40 +00:00
__init__.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
api_paste_fixture.py Use external placement in functional tests 2018-12-12 18:46:49 +00:00
api_samples_test_base.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00
fixtures.py Convert driver supported capabilities to compute node provider traits 2019-02-28 23:28:19 +00:00
integrated_helpers.py nova-net: Use nova-net explicitly in functional tests 2019-10-02 12:38:40 +00:00
test_aggregates.py Add image caching API for aggregates 2019-10-15 21:22:31 -04:00
test_availability_zones.py Remove global state from the FakeDriver 2019-06-21 10:37:20 +02:00
test_boot_from_volume.py Avoid using image with kernel in BDM large request func test 2019-10-11 15:48:56 +02:00
test_compute_mgr.py Fup for the bandwidth series 2019-02-27 10:23:15 +01:00
test_conf_max_attach_disk_devices.py Rename CinderFixtureNewAttachFlow to CinderFixture 2019-07-01 16:00:52 -05:00
test_cross_az_attach.py Add functional tests for [cinder]/cross_az_attach=False 2019-09-24 13:23:12 -04:00
test_images.py Share snapshot image membership with instance owner 2019-02-08 18:06:27 -05:00
test_instance_actions.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_json_filter.py Move HostNameWeigher to a common fixture 2019-09-25 09:57:38 +02:00
test_legacy_v2_compatible_wrapper.py Improve NeutronFixture and remove unncessary stubbing 2018-08-02 15:15:03 +02:00
test_list_servers_ip_filter.py trivial: Change name of network provided by NeutronFixture 2019-10-05 15:40:28 +01:00
test_login.py
test_metadata.py ec2: Move ec2utils functions to their callers 2019-09-27 15:27:08 +01:00
test_middleware.py
test_multiattach.py nova-net: Remove explicit 'USE_NEUTRON = True' 2019-10-02 15:14:01 +00:00
test_nova_manage.py fixtures: Store 'device_id' when creating port in NeutronFixture 2019-10-05 15:40:25 +01:00
test_report_client.py Merge "Remove @safe_connect from _delete_provider" 2019-10-09 22:49:12 +00:00
test_server_external_events.py API microversion 2.76: Add 'power-update' external event 2019-08-15 13:19:44 -04:00
test_server_faults.py Replace non-nova server fault message 2019-08-06 10:22:28 -04:00
test_server_group.py Merge "Remove global state from the FakeDriver" 2019-06-27 17:50:11 +00:00
test_servers.py Filter migrations by user_id/project_id 2019-10-14 11:35:11 -07:00
test_servers_provider_tree.py hacking: Resolve W605 (invalid escape sequence) 2019-06-24 14:24:06 -05:00