Skip to content

Commit 08c3b65

Browse files
committed
CLOUDSTACK-4659: Vmware allows destroying VM that has pending tasks, worker VM GC actually relies on the assumption that Vmware is protected from that which is a false assumption. Recycle Worker VM only it is from previous session
1 parent 159d798 commit 08c3b65

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/manager/VmwareManagerImpl.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,12 +575,16 @@ public boolean needRecycle(String workerTag) {
575575
s_logger.info("Worker VM's owner management server has changed runid, recycle it");
576576
return true;
577577
}
578-
578+
579+
// disable time-out check until we have found out a VMware API that can check if
580+
// there are pending tasks on the subject VM
581+
/*
579582
if(System.currentTimeMillis() - startTick > _hungWorkerTimeout) {
580583
if(s_logger.isInfoEnabled())
581584
s_logger.info("Worker VM expired, seconds elapsed: " + (System.currentTimeMillis() - startTick) / 1000);
582585
return true;
583586
}
587+
*/
584588
return false;
585589
}
586590

0 commit comments

Comments
 (0)