Skip to content

Garbage snapshots are left on Primary and Secondary storage after a volume snapshot is deleted #3646

@andrijapanicsb

Description

@andrijapanicsb
ISSUE TYPE
  • Bug Report
COMPONENT NAME
snapshots handling
CLOUDSTACK VERSION
4.11.2, 4.13.0.0 tested
CONFIGURATION

Xs and NFS or KVM and NFS/Ceph (have not tested VMware)

OS / ENVIRONMENT
SUMMARY

When a snapshot is deleted (manually, or as part of the scheduled snap policy), snapshot is NOT deleted from Primary Storage (except KVM + Ceph, which is being fixed in #3615) and is also NOT deleted from Secondary Storage.
DB entries are inconsistent/partially cleared.

STEPS TO REPRODUCE

XS+NFS tested as following
Make snap (XS plus NFS), delete snap - snap is left on Primary Storage AND on Secondary Storage.
Same goes for scheduled snap policy. "Primary" store ref row is deleted from the snapshots_store_ref but not really deleted on Primary Store. "image" store ref row is NOT deleted from snapshots_store_ref and image is NOT deleted on Secondary Store (after muiltiple runs of storage clean up thread i.e. storage.cleanup.delay=60, storage.cleanup.delay=60.

KVM+Ceph tested as per the updates in #3615 and will be tracker here.

NOTE: XenserverSnapshotStrategy is NOT handling only XS, also some KVM
Pay attention to the managed storage.
This whole "garbage" problem was not there in 4.8 at least (possibly also 4.9).

EXPECTED RESULTS
snapshot is deleted in both primary and secondary storage (after the cleanup thread runs)
ACTUAL RESULTS
garbage is left, left and right

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions