Skip to content

VM Snapshot stuck at Expunging with KvmFileBasedStorageVmSnapshotStrategy #14019

Description

@abh1sar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions