You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (HypervisorCapabilitiesVOhypervisorCapabilities : lstHypervisorCapabilities) {
6209
-
if (hypervisorCapabilities.isStorageMotionSupported()) {
6210
-
capabilities = hypervisorCapabilities;
6211
-
6212
-
break;
6213
-
}
6214
-
}
6204
+
if (capabilities == null) {
6205
+
if (!HypervisorType.KVM.equals(srcHost.getHypervisorType())) {
6206
+
thrownewCloudRuntimeException(String.format("Cannot migrate VM with storage, as the capabilities are not found for the hypervisor %s with version %s", srcHost.getHypervisorType(), srcHost.getHypervisorVersion()));
thrownewCloudRuntimeException("Migration with storage isn't supported on hypervisor " + srcHost.getHypervisorType() + " of version " + srcHost.getHypervisorVersion());
.orElseThrow(() -> newCloudRuntimeException(String.format("Cannot migrate VM with storage, as the capabilities are not found for the hypervisor %s with version %s", srcHost.getHypervisorType(), srcHost.getHypervisorVersion())));
thrownewCloudRuntimeException(String.format("Migration with storage isn't supported on hypervisor %s of version %s", srcHost.getHypervisorType(), srcHost.getHypervisorVersion()));
0 commit comments