apache / apache/cloudstack

VM Snapshot stuck at Expunging with KvmFileBasedStorageVmSnapshotStrategy

オープン
#14,019 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Java
スター
3.1k
フォーク
1.4k
平均マージ
6日 19時間
マージ済み PR(30日)
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 でディスクのみのスナップショット削除を再現します。タイムアウトまたは例外の経路を追跡し、スナップショットが Expunging のままになるのではなく Error に到達することを確認して、再起動や後続のスナップショット操作がブロックされないようにします。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
cloud, infrastructure
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
68/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。