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
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtMigrateCommandWrapper.java
+23-15Lines changed: 23 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -315,21 +315,7 @@ Use VIR_DOMAIN_XML_SECURE (value = 1) prior to v1.0.0.
315
315
if (logger.isDebugEnabled()) {
316
316
logger.debug(String.format("Cleaning the disks of VM [%s] in the source pool after VM migration finished.", vmName));
317
317
}
318
-
DomainStatedmState = null;
319
-
try {
320
-
dmState = destDomain.getInfo().state;
321
-
} catch (finalLibvirtExceptione) {
322
-
logger.info("Failed to get domain state for VM: " + vmName + " due to: " + e.getMessage());
323
-
}
324
-
325
-
if (dmState == DomainState.VIR_DOMAIN_PAUSED) {
326
-
logger.info("Resuming VM " + vmName + " on destination after migration");
327
-
try {
328
-
destDomain.resume();
329
-
} catch (finalExceptione) {
330
-
logger.error("Failed to resume vm " + vmName + " on destination after migration due to : " + e.getMessage());
0 commit comments