From e694ed918584f3348ab766786dc3918066e6eaa8 Mon Sep 17 00:00:00 2001 From: Nicolas Vazquez Date: Thu, 3 Jun 2021 08:31:10 -0300 Subject: [PATCH] [4.9.1.0-shapeblue17.2] Fix worker VM HW version numeric value instead of formatted (#46) --- .../com/cloud/hypervisor/vmware/resource/VmwareResource.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java index b913a224d9af..2d8ad141cbe7 100644 --- a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java +++ b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java @@ -4029,7 +4029,8 @@ private Answer migrateVolume(MigrateVolumeCommand cmd) { Integer sourceHardwareVersion = HypervisorHostHelper.getHostHardwareVersion(hyperHost); Integer destinationHardwareVersion = HypervisorHostHelper.getHostHardwareVersion(dsHost); if (sourceHardwareVersion != null && destinationHardwareVersion != null && !sourceHardwareVersion.equals(destinationHardwareVersion)) { - hardwareVersion = String.valueOf(Math.min(sourceHardwareVersion, destinationHardwareVersion)); + hardwareVersion = VirtualMachineMO.getVmxFormattedVirtualHardwareVersion( + Math.min(sourceHardwareVersion, destinationHardwareVersion)); } } s_logger.info("Create worker VM " + vmName);