[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:
parent
5dd3a7c2b9
commit
30294bcafd
@ -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):
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user