VM Snapshot stuck at Expunging with KvmFileBasedStorageVmSnapshotStrategy
- 主要言語
- 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