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
Copy file name to clipboardExpand all lines: api/src/main/java/org/apache/cloudstack/api/command/admin/vm/ImportVmCmd.java
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,10 @@ public class ImportVmCmd extends ImportUnmanagedInstanceCmd {
165
165
description = "(VMware to KVM only) extra parameters to be passed on the virt-v2v command, if allowed by the administrator")
166
166
privateStringextraParams;
167
167
168
+
@Parameter(name = "forceconverttopool", type = CommandType.BOOLEAN,
169
+
description = "(only for importing VMs from VMware to KVM) optional - if true, forces virt-v2v conversions to write directly on the provided storage pool (avoid using temporary conversion pool).")
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtImportConvertedInstanceCommandWrapper.java
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ public Answer execute(ImportConvertedInstanceCommand cmd, LibvirtComputingResour
Copy file name to clipboardExpand all lines: plugins/hypervisors/kvm/src/test/java/com/cloud/hypervisor/kvm/resource/wrapper/LibvirtConvertInstanceCommandWrapperTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ public void testExecuteConvertFailure() {
logFailureAndThrowException(String.format("Cannot use the storage pool %s for the instance conversion as " +
2253
2256
"the host %s for conversion is in a different cluster", selectedStoragePool.getName(), convertHost.getName()));
2254
2257
}
2255
-
if (selectedStoragePool.getScope() == ScopeType.HOST) {
2256
-
logFailureAndThrowException(String.format("The storage pool %s is a local storage pool and not supported for temporary conversion location, cluster and zone wide NFS storage pools are supported", selectedStoragePool.getName()));
logFailureAndThrowException(String.format("The storage pool %s is not supported for temporary conversion location, only NFS storage pools are supported", selectedStoragePool.getName()));
2258
+
if (!forceConvertToPool) {
2259
+
if (selectedStoragePool.getScope() == ScopeType.HOST) {
2260
+
logFailureAndThrowException(String.format("The storage pool %s is a local storage pool and not supported for temporary conversion location, cluster and zone wide NFS storage pools are supported", selectedStoragePool.getName()));
logFailureAndThrowException(String.format("The storage pool %s is not supported for temporary conversion location, only NFS storage pools are supported", selectedStoragePool.getName()));
0 commit comments