apache / apache/cloudstack

Unable to download volume snapshot on VMWare

Open
#13,375 1 comment 0 reactions 0 assignees View on GitHub
component:secondary-storage component:vmware Severity:Major type:bug
Dominant language
Java
Stars
3.1k
Forks
1.4k
Avg merge
6d 19h
Merged PRs (30d)
32

Description

### problem

Volume snapshot cannot be downloaded when using VMWare hypervisor.

### versions

Found in 4.22.1

### The steps to reproduce the bug

When you try to download a volume snapshot on a VMWare environment, you get the following error:

Image

And here is the exception in the management server log:
```
2026-06-08 14:50:39,066 ERROR [o.a.c.s.i.BaseImageStoreDriverImpl] (API-Job-Executor-36:[ctx-78500c19, job-44, ctx-8bc3173c]) (logid:14ad9b5b) Unable to create a link for entity at snapshots/2/3/1c076a50-e550-40df-ab68-76ef04c6c365/1c076a50-e550-40df-ab68-76ef04c6c365 on ssvm, Failed to download
2026-06-08 14:50:39,074 ERROR [c.c.a.ApiAsyncJobDispatcher] (API-Job-Executor-36:[ctx-78500c19, job-44]) (logid:14ad9b5b) Unexpected exception while executing org.apache.cloudstack.api.command.user.snapshot.ExtractSnapshotCmd com.cloud.utils.exception.CloudRuntimeException: Unable to create a link for entity at snapshots/2/3/1c076a50-e550-40df-ab68-76ef04c6c365/1c076a50-e550-40df-ab68-76ef04c6c365 on ssvm, Failed to download
at org.apache.cloudstack.storage.datastore.driver.CloudStackImageStoreDriverImpl.createEntityExtractUrl(CloudStackImageStoreDriverImpl.java:123)
at org.apache.cloudstack.storage.image.store.ImageStoreImpl.createEntityExtractUrl(ImageStoreImpl.java:213)
at com.cloud.storage.snapshot.SnapshotManagerImpl.extractSnapshot(SnapshotManagerImpl.java:604)
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.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:109)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:52)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:175)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:215)
at jdk.proxy3/jdk.proxy3.$Proxy245.extractSnapshot(Unknown Source)
at org.apache.cloudstack.api.command.user.snapshot.ExtractSnapshotCmd.execute(ExtractSnapshotCmd.java:105)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:173)
at com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:110)
at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:698)
at org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
at org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:646)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
```

### What to do about it?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with CloudStackImageStoreDriverImpl.java:123 and follow the call chain through ImageStoreImpl.java:213 and SnapshotManagerImpl.java:604, using the reported VMware reproduction steps and log. Compare the snapshot extraction path with the VMware-specific behavior. Done means a volume snapshot can be downloaded successfully on a VMware environment without the reported extraction error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.