From 69647b38ce96fb40131ad480a59f034701da5369 Mon Sep 17 00:00:00 2001 From: Priyank Parihar Date: Fri, 11 Dec 2015 11:05:46 +0530 Subject: [PATCH] CLOUDSTACK-8841: Storage XenMotion from XS 6.2 to XS 6.5 fails. --- server/src/com/cloud/vm/UserVmManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/vm/UserVmManagerImpl.java b/server/src/com/cloud/vm/UserVmManagerImpl.java index cc007d90210..f1a523b9b7d 100644 --- a/server/src/com/cloud/vm/UserVmManagerImpl.java +++ b/server/src/com/cloud/vm/UserVmManagerImpl.java @@ -4717,8 +4717,8 @@ public class UserVmManagerImpl extends ManagerBase implements UserVmManager, Vir } // Check if the source and destination hosts are of the same type and support storage motion. - if (!(srcHost.getHypervisorType().equals(destinationHost.getHypervisorType()) && srcHost.getHypervisorVersion().equals(destinationHost.getHypervisorVersion()))) { - throw new CloudRuntimeException("The source and destination hosts are not of the same type and version. " + "Source hypervisor type and version: " + if (!(srcHost.getHypervisorType().equals(destinationHost.getHypervisorType()))) { + throw new CloudRuntimeException("The source and destination hosts are not of the same type. " + "Source hypervisor type and version: " + srcHost.getHypervisorType().toString() + " " + srcHost.getHypervisorVersion() + ", Destination hypervisor type and version: " + destinationHost.getHypervisorType().toString() + " " + destinationHost.getHypervisorVersion()); }