You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 04dccda
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -467,7 +468,7 @@ public boolean createSnapshot(String snapshotName, String snapshotDescription, b
467
468
ManagedObjectReferencemorSnapshot = null;
468
469
// We still need to wait until the object appear in vCenter
469
470
longstartTick = System.currentTimeMillis();
470
-
while (System.currentTimeMillis() - startTick < 10000) {
471
+
while (System.currentTimeMillis() - startTick < apiTimeout) {
471
472
morSnapshot = getSnapshotMor(snapshotName);
472
473
if (morSnapshot != null) {
473
474
break;
@@ -479,9 +480,11 @@ public boolean createSnapshot(String snapshotName, String snapshotDescription, b
479
480
}
480
481
}
481
482
482
-
if (morSnapshot == null)
483
-
s_logger.error("We've been waiting for over 10 seconds for snapshot MOR to be appearing in vCenter after CreateSnapshot task is done, but it is still not there?!");
484
-
483
+
if (morSnapshot == null) {
484
+
s_logger.error("We've been waiting for over " + apiTimeout + " milli seconds for snapshot MOR to be appearing in vCenter after CreateSnapshot task is done, but it is still not there?!");
485
+
returnfalse;
486
+
}
487
+
s_logger.debug("Waited for " + (System.currentTimeMillis() - startTick) + " seconds for snapshot object [" + snapshotName + "] to appear in vCenter.");
485
488
returntrue;
486
489
} else {
487
490
s_logger.error("VMware createSnapshot_Task failed due to " + TaskMO.getTaskFailureInfo(_context, morTask));
@@ -1751,8 +1754,15 @@ public VirtualMachineMO cloneFromDiskChain(String clonedVmName, int cpuSpeedMHz,
0 commit comments