apache / apache/cloudstack

Unable to download volume snapshot on VMWare

未关闭
#13,375 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
component:secondary-storage component:vmware Severity:Major type:bug
主要语言
Java
星标
3.1k
派生
1.4k
平均合并
6 天 19 小时
30 天内合并 PR
32

描述

### 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_

贡献指南

打开贡献指南

调研方向

从 CloudStackImageStoreDriverImpl.java:123 开始,使用报告中的 VMware 复现步骤和日志,沿着调用链跟踪到 ImageStoreImpl.java:213 和 SnapshotManagerImpl.java:604。将快照提取路径与 VMware 特有的行为进行比较。当卷快照能够在 VMware 环境中成功下载且不再出现报告的提取错误时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
cloud
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。