apache / apache/cloudstack

VM Snapshot stuck at Expunging with KvmFileBasedStorageVmSnapshotStrategy

Offen
#14,019 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Java
Sterne
3.1k
Forks
1.4k
Ø Merge
6 T. 19 Std.
Gemergte PRs (30 T.)
32

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit KvmFileBasedStorageVmSnapshotStrategy.deleteVMSnapshot und VMSnapshotManagerImpl.hasActiveVMSnapshotTasks und reproduziere anschließend das Löschen eines rein datenträgerbasierten Snapshots mit commands.timeout=MergeDiskOnlyVmSnapshotCommand=20. Verfolge den Timeout- oder Ausnahmeweg und überprüfe, dass der Snapshot den Status Error erreicht, statt in Expunging zu verbleiben, damit Neustarts und spätere Snapshot-Vorgänge nicht mehr blockiert werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
cloud, infrastructure
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
68/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.