nova/nova/tests
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
..
functional Fix listing deleted servers with a marker 2019-10-23 10:32:28 -04:00
unit Merge "Add PrepResizeAtSourceTask" 2019-10-21 11:31:32 +00:00
__init__.py
fixtures.py Merge "Filter out alembic logs below WARNING in tests" 2019-10-09 21:07:05 +00:00
json_ref.py Transform instance.exists notification 2018-06-05 12:51:30 +00:00