Skip to content

VM snapshot deletion failure may put it indefinitely in expunging state #4201

Closed

Description

@yadvr

VM snapshot deletion may put the state in Expunging state indefinitely, originally logged here: apache/cloudstack-primate#488

ISSUE TYPE
  • Bug Report
COMPONENT NAME
VMware
CLOUDSTACK VERSION
4.14

Activity

  1. added this to the 4.15.1.0 milestone on Jan 28, 2021
  2. DaanHoogland commented on Jan 28, 2021

    @DaanHoogland
    Contributor

    the statemachine VMSnapshot.s_fsm, the transition s_fsm.addTransition(Expunging, Event.OperationSucceeded, Removed) is never executed for this to happen (or an exception occurs).
    DefaultVMSnapshotStrategy.processAnswer(final VMSnapshotVO vmSnapshot, UserVm userVm, final Answer as, Long hostId) is were is probably should happen.

  3. shwstppr commented on Mar 10, 2021

    @shwstppr
    Contributor

    @rhtyd @DaanHoogland are there any known reproduction steps?

  4. DaanHoogland commented on Mar 11, 2021

    @DaanHoogland
    Contributor

    @shwstppr not reliably, that I know of. I happens regularly though. usually after a full smoke test run, there will be some remnant VMs in expunging state.

  5. yadvr commented on Mar 24, 2021

    @yadvr
    MemberAuthor

    @shwstppr - create a VM snapshot, delete the snapshot when it's in expunging state, (a) try to restart mgmt server, (b) don't restart mgtm server but see if the GC thread kicks in to purge the VM snapshot.

  6. yadvr commented on Apr 10, 2021

    @yadvr
    MemberAuthor

    Closing issue, have a PR - #4898

  7. added a commit that references this issue on Apr 12, 2021
    a64ad9d
  8. yadvr commented on Apr 12, 2021

    @yadvr
    MemberAuthor

    Fixed in #4898

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions