Uploaded image for project: 'OpenShift API for Data Protection'
  1. OpenShift API for Data Protection
  2. OADP-3342

deletionPolicy on VolumeSnapshotContent is not being patched to Delete after backup expiration

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo
    • No
    • 0
    • 0
    • Very Likely
    • 0
    • Customer Escalated, Customer Facing
    • None
    • Unset
    • Unknown

      Using Trident CSI driver and a VolumeSnapshotClass with "Delete" deletionPolicy.

      As per upstream documentation https://velero.io/docs/v1.12/csi/

      VolumeSnapshots created by the Velero CSI plugins are retained only for the lifetime of the backup even if the DeletionPolicy on the VolumeSnapshotClass is set to Retain. To accomplish this, during deletion of the backup the prior to deleting the VolumeSnapshot, VolumeSnapshotContent object is patched to set its DeletionPolicy to Delete. Deleting the VolumeSnapshot object will result in cascade delete of the VolumeSnapshotContent and the snapshot in the storage provider.

      Was observed that several snapshots are still retained on the storage backend after the backup expires.
      VSC and VS objects on the API are deleted correctly, so this might indicate that this patch might not be working as expected. 

            wnstb Wes Hayutin
            rhn-support-lperezbe Luis Perez Besa
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: