VM Snapshot stuck at Expunging with KvmFileBasedStorageVmSnapshotStrategy
- Langage dominant
- Java
- Étoiles
- 3.1k
- Forks
- 1.4k
- Merge moyen
- 6 j 19 h
- PR mergées (30 j)
- 32
Description
### 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par KvmFileBasedStorageVmSnapshotStrategy.deleteVMSnapshot et VMSnapshotManagerImpl.hasActiveVMSnapshotTasks, puis reproduisez la suppression d’un snapshot uniquement disque avec commands.timeout=MergeDiskOnlyVmSnapshotCommand=20. Suivez le chemin du timeout ou de l’exception et vérifiez que le snapshot atteint Error au lieu de rester dans Expunging, afin que les redémarrages et les opérations de snapshot ultérieures ne soient plus bloqués.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- java
- Domaine
- cloud, infrastructure
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Active
- Clarté
- Plutôt claire
- Accessibilité débutants
- 68/100