Reproduce: - have a running VM - create a snapshot with memory - turn off the VM - press preview result: the "The selected snapshot's memory can't be properly restored since it was created in different cluster version. Please confirm the memory shall be restored anyway." is shown even the VM is still in the same cluster. If you check the "restore anyway" checkbox the memory is restored and seems to be working properly. Additional info: The reason seems to be that the check in SnapshotModel.isVMWithMemoryCompatible() relies on the vm.getClusterCompatibilityVersionOrigin(); while SnapshotManager.updateVmFromConfiguration() replaces it by vm.setClusterCompatibilityVersionOrigin(oldVmStatic.getClusterCompatibilityVersionOrigin());
Verified with rhevm-4.0.4.2-0.1.el7ev.noarch. The message did not appear when running the flow in the description. The message did not appear when the vm was set with custom ccv 3.6 before taking the snapshot and set to custom ccv 4.0 after snapshot is taken and before previewing - this makes sense as in this case ccv is managed manually by the user. The message did appear when snapshot was created on a 3.6 cluster and was previewed after the cluster's upgrade to 4.0 ccv.