apache / apache/cloudstack

VM Snapshot stuck at Expunging with KvmFileBasedStorageVmSnapshotStrategy

未關閉
#14,019 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Java
星號
3.1k
分支
1.4k
平均合併
6 天 19 小時
30 天內合併 PR
32

描述

### problem

`KvmFileBasedStorageVmSnapshotStrategy.deleteVMSnapshot` transitions the VM snapshot to `Expunging` during delete but doesn't transition it to `Error` state in case of exception or timeout

`VMSnapshotManagerImpl.hasActiveVMSnapshotTasks` counts `Expunging` as work in
progress, so operations like reboot and snapshot operations are blocked.

### versions

4.22

### The steps to reproduce the bug

1. Take a disk-only VM snapshot.
2. Write lots of data to the VM
3. set commands.timeout=MergeDiskOnlyVmSnapshotCommand=20
4. Delete the snapshot.

...

### What to do about it?

Snapshot state should transition to Error in case of timeout

貢獻指南

開啟貢獻指南

研究方向

從 KvmFileBasedStorageVmSnapshotStrategy.deleteVMSnapshot 和 VMSnapshotManagerImpl.hasActiveVMSnapshotTasks 開始,然後使用 commands.timeout=MergeDiskOnlyVmSnapshotCommand=20 重現僅磁碟快照刪除。追蹤逾時或例外路徑,並驗證快照進入 Error,而不是停留在 Expunging,讓重新啟動和後續快照操作不再遭到阻擋。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
java
領域
cloud, infrastructure
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
活躍
描述清晰度
基本清楚
新手友好度
68/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。