Updated Branches: refs/heads/master f6f4a9314 -> b864e677e
CLOUDSTACK-5039 bugfix: live migration failure in KVM env. Signed-off-by: ynojima <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b864e677 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b864e677 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b864e677 Branch: refs/heads/master Commit: b864e677e5d007e10b73f10120d86dc97684de6c Parents: f6f4a93 Author: ynojima <[email protected]> Authored: Mon Nov 4 21:50:14 2013 -0700 Committer: Kishan Kavala <[email protected]> Committed: Thu Nov 7 20:56:23 2013 +0530 ---------------------------------------------------------------------- .../cloud/hypervisor/kvm/resource/LibvirtComputingResource.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b864e677/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java ---------------------------------------------------------------------- diff --git a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java index 570eae6..00412d2 100755 --- a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java +++ b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java @@ -2910,8 +2910,7 @@ ServerResource { try { conn = LibvirtConnection.getConnectionByVmName(cmd.getVmName()); ifaces = getInterfaces(conn, vmName); - dm = conn.domainLookupByUUID(UUID.nameUUIDFromBytes(vmName - .getBytes())); + dm = conn.domainLookupByName(vmName); /* We replace the private IP address with the address of the destination host. This is because the VNC listens on the private IP address of the hypervisor,
