Volumesnapshot created by OADP getting deleted by OpenShift GitOps during backup process

Solution Verified - Updated -

Issue

  • OpenShift GitOps/ArgoCD may reconcile/prune VolumeSnapshot resources during the backup procedure, causing the backup to fail. This is related to the fact that PersistentVolumes, managed by ArgoCD have a label applied to identify them as being managed by ArgoCD. This label is inherited by VolumeSnapshot for restore purpose but is causing ArgoCD to prune it during the backup procedure because it's not expected to be there. That way, backups are not working respectively failing unexpected.
  • OADP backup failing because of snapshot creation is failing respectively the snapshot created has gone missing and reporting the below error.

    [...]
      sourceNamespace: namespace-1
      sourcePVC: pvc-source-1
    status:
      completionTimestamp: '2024-05-23T11:59:28Z'
      message: >-
        error to expose snapshot: error wait volume snapshot ready: error to get
        volumesnapshot namespace-1/velero-pvc-source-1-x4294:
        volumesnapshots.snapshot.storage.k8s.io "velero-pvc-source-1-x4294"
        not found
    [...]
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4
  • OpenShift GitOps
  • OpenShift API for Data Protection (OADP)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content