ISSUE TYPE
BUG
Component Name
Import, kvm
CLOUDSTACK VERSION
Cloudstack version 4.19
SUMMARY
Unable to import qcow2 image present on shared/local to a custom offering
Steps to reproduce the issue
- Create a custom service offering

-
Have a qcow2 file present in the shared storage/localstorage
-
Navigate to tools> Import > kvm >


- Exception

Logs
2024-03-12 13:50:12,144 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-87:ctx-cd9f62c7 job-409803) (logid:273d199c) Unexpected exception while executing org.apache.cloudstack.api.command.admin.vm.ImportVmCmd
java.lang.NumberFormatException: For input string: "null"
at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:652)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at com.cloud.vm.UserVmManagerImpl.commitUserVm(UserVmManagerImpl.java:4524)
at com.cloud.vm.UserVmManagerImpl.importVM(UserVmManagerImpl.java:8230)
Actual Behaviour
The qcow2 file is not getting imported successfully with a custom offering
Expected Behaviour
The qcow2 file should get imported successfully with a custom offering
ISSUE TYPE
BUG
Component Name
Import, kvm
CLOUDSTACK VERSION
Cloudstack version 4.19
SUMMARY
Unable to import qcow2 image present on shared/local to a custom offering
Steps to reproduce the issue
Have a qcow2 file present in the shared storage/localstorage
Navigate to tools> Import > kvm >
Logs
Actual Behaviour
The qcow2 file is not getting imported successfully with a custom offering
Expected Behaviour
The qcow2 file should get imported successfully with a custom offering