Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

VM Snapshot stuck at Expunging with KvmFileBasedStorageVmSnapshotStrategy

Open
#14,019 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java

Research direction

Start with KvmFileBasedStorageVmSnapshotStrategy.deleteVMSnapshot and VMSnapshotManagerImpl.hasActiveVMSnapshotTasks, then reproduce the disk-only snapshot deletion with commands.timeout=MergeDiskOnlyVmSnapshotCommand=20. Trace the timeout or exception path and verify that the snapshot reaches Error rather than remaining Expunging, so reboot and later snapshot operations are no longer blocked.

Written by the indexing model from the issue text.

Description

bug
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

Dominant language
Java
Stars
3.1k
Forks
1.4k
Avg merge
6d 20h
Merged PRs (30d)
27

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/cloudstack

All issues in apache/cloudstack

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.