[CI] Unblock CI by introducing Nova VMs cleanup bug

This bug removes limit=-1 that is broken at the moment and hangs out.

By removing it we will remove only 1000 servers.
We are going to revert this patch as soon as Nova is fixed

Change-Id: If23d874e8b73de12ba2b8c4e028a55543af6381b
This commit is contained in:
Boris Pavlovic 2017-10-05 15:41:49 -07:00
parent 94092fd285
commit 20f7e89d69
2 changed files with 3 additions and 2 deletions

View File

@ -154,7 +154,8 @@ _nova_order = get_order(200)
class NovaServer(base.ResourceManager):
def list(self):
"""List all servers."""
return self._manager().list(limit=-1)
# FIX(boris-42): Use limit=-1 when it's fixed
return self._manager().list()
def delete(self):
if getattr(self.raw_resource, "OS-EXT-STS:locked", False):

View File

@ -84,7 +84,7 @@ class NovaServerTestCase(test.TestCase):
server.list()
server._manager.return_value.list.assert_called_once_with(limit=-1)
server._manager.return_value.list.assert_called_once_with()
def test_delete(self):
server = resources.NovaServer()