Skip to content

Unable to import qcow2 image present on shared/local to a custom offering #8785

@kiranchavala

Description

@kiranchavala

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

  1. Create a custom service offering

custom-offering

  1. Have a qcow2 file present in the shared storage/localstorage

  2. Navigate to tools> Import > kvm >

Screenshot 2024-03-14 at 10 20 16 AM

Screenshot 2024-03-13 at 1 58 56 PM

  1. Exception

Screenshot 2024-03-13 at 1 59 06 PM

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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions