Hello, all

-1. A regression has been introduced affecting the import of unmanaged VMs
from VMware and KVM. When a VM is imported with a non-fixed service
offering (Custom Constrained or Custom Unconstrained), an NPE is thrown by
the Management Server:

```
2026-03-22 00:54:59,177 ERROR [c.c.a.ApiAsyncJobDispatcher]
(API-Job-Executor-4:[ctx-698fa97b, job-76]) (logid:2ce06df1) Unexpected
exception while executing
org.apache.cloudstack.api.command.admin.vm.ImportUnmanagedInstanceCmd
java.lang.NullPointerException: Cannot invoke
"java.lang.Integer.intValue()" because the return value of
"com.cloud.service.ServiceOfferingVO.getCpu()" is null
at
org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.baseImportInstance(UnmanagedVMsManagerImpl.java:1357)
at
org.apache.cloudstack.vm.UnmanagedVMsManagerImpl.importUnmanagedInstance(UnmanagedVMsManagerImpl.java:1313)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
--
2026-03-22 00:54:59,181 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl]
(API-Job-Executor-4:[ctx-698fa97b, job-76]) (logid:2ce06df1) Complete async
job-76, jobStatus: FAILED, resultCode: 530, result:
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":"530","errortext":"Cannot
invoke "java.lang.Integer.intValue()" because the return value of
"com.cloud.service.ServiceOfferingVO.getCpu()" is null"}
```

For fixed service offerings, the import process works correctly.

Best regards,
Bernardo De Marco Gonçalves (bernardodemarco)

Em sáb., 21 de mar. de 2026 às 02:15, Abhisar Sinha <[email protected]>
escreveu:

> Hi All,
>
> I have created a 4.20.3.0 release candidate (RC1), with the following
> artifacts up for testing and a vote:
>
> Git Branch and Commit SHA:
> https://github.com/apache/cloudstack/tree/4.20.3.0-RC20260320T1916
> Commit: 9251765643a6f491276a29aa9e25a04a76155d29
>
> Source release (checksums and signatures are available at the same
> location):
> https://dist.apache.org/repos/dist/dev/cloudstack/4.20.3.0/
>
> PGP release keys (signed using 910FEDFDD14396EFB7BB024AD231C4DDCCD67A2A):
> https://dist.apache.org/repos/dist/release/cloudstack/KEYS
>
> The vote will be open for 72 hours (excluding the weekend).
>
> For sanity in tallying the vote, can PMC members please be sure to indicate
> "(binding)" with their vote?
>
> [ ] +1  approve
> [ ] +0  no opinion
> [ ] -1  disapprove (and reason why)
>
> For users' convenience, the packages from this release candidate (RC1) are
> available here:
> https://download.cloudstack.org/testing/4.20.3.0-RC1/
>
>
> Regards,
> Abhisar
>

Reply via email to