Delete VMs in the error state immediately.

If a VM is in an error state do not wait 24 hours to delete it. Perform
the deletion immediately.

Change-Id: I07dea7971c3cd95215204759779ce650675f244f
This commit is contained in:
Clark Boylan
2012-10-25 16:41:06 -07:00
parent 3b788dceea
commit 643a44af0b

View File

@@ -133,7 +133,8 @@ def main():
if (REAP_ALL_SERVERS or
(machine.state != vmdatabase.READY and
now - machine.state_time > MACHINE_LIFETIME) or
machine.state == vmdatabase.DELETE):
machine.state == vmdatabase.DELETE or
machine.state == vmdatabase.ERROR):
print 'Deleting machine', machine.name
try:
delete_machine(jenkins, client, machine)