Skip to content

Commit 795fd80

Browse files
author
Marcus Sorensen
committed
Summary: KVM - double migration can fail
Detail: Undefine VM after migration. Lingering domain definitions cause migrations back to the original host to fail, since domain already exists. BUG-ID: CLOUDSTACK-2640 Bugfix-for: 4.1.0,4.2.0 Signed-off-by: Marcus Sorensen <marcus@betterservers.com> 1369285950 -0600
1 parent 4786420 commit 795fd80

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2728,6 +2728,9 @@ private synchronized Answer execute(MigrateCommand cmd) {
27282728
} finally {
27292729
try {
27302730
if (dm != null) {
2731+
if (dm.isPersistent() == 1) {
2732+
dm.undefine();
2733+
}
27312734
dm.free();
27322735
}
27332736
if (dconn != null) {

0 commit comments

Comments
 (0)