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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user