On failure to start a VM on a cluster cloudstack attempts to migrate the volume and it is not handling the ERROR from vCenter properly and deletes the source volume.
2024-03-01 16:42:25,106 ERROR [c.c.h.v.r.VmwareResource] (DirectAgent-85:ctx-4892dce2 10.48.5.154, job-321733/job-321735, cmd: MigrateVolumeCommand) (logid:d44f6d79) Catch Exception java.lang.NullPointerException due to java.lang.NullPointerException
java.lang.NullPointerException
at com.cloud.hypervisor.vmware.resource.VmwareResource.appendFileType(VmwareResource.java:2972)
at com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:4937)
at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:510)
at com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:315)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:48)
2024-03-01 16:42:25,109 DEBUG [o.a.c.s.m.VmwareStorageMotionStrategy] (Work-Job-Executor-72:ctx-03206dff job-321733/job-321735 ctx-80e4ae4d) (logid:d44f6d79) retrieved 'null' as new path for volume(20763)
2024-03-01 16:42:25,203 INFO [o.a.c.s.v.VolumeServiceImpl] (Work-Job-Executor-72:ctx-03206dff job-321733/job-321735 ctx-80e4ae4d) (logid:d44f6d79) Cleaning up {"name":"ROOT-10728","uuid":"a79915c0-f2fb-4326-a6ba-c2827fe71bd8"} on storage [110].
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
OS / ENVIRONMENT
VMware vSphere 7.0.3
SUMMARY
On failure to start a VM on a cluster cloudstack attempts to migrate the volume and it is not handling the ERROR from vCenter properly and deletes the source volume.