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

Cannot restore PVC content with restic if only pv,pvc,pod is specified to be restored in ".spec.includedResources"

    XMLWordPrintable

Details

    • False
    • Hide

      None

      Show
      None
    • False
    • ToDo
    • No
    • 0
    • 0
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown

    Description

      Description of problem:

      While trying to restore a previous OADP backup, we only add, pv, pvc and pod to the list of .spec.includedResources in the Restore CR.

      Velero logs shows no errors while trying to restore the PVC, although I do noticed the Dynamically re-provisioning persistent volume because it has a restic backup to be restored message.

      [pvc-restore] shows "Returning pvc object as is since this is not a migration activity" and then "Resetting PersistentVolumeClaim case03324304/case03324304-pvc for dynamic provisioning" + it mentions that the resource=persistentvolumeclaims got restored, but content is still missing (a file called prueba in /var/www/html was placed previous backup, so, this file should be there after restoring the PVC)
       
      Version-Release number of selected component (if applicable):

      OCP 4.8 

      OADP 1.0.4

       

      How reproducible:

      All the time in user's environment

      Steps to Reproduce:
      1. Have multiple PVCs in a namespace, put some data on one of them
      2. Backup objects, including PVCs with restic
      3. Restore PV,PVC,POD objects 

      Actual results:

      Original content on PV is missing/not restored

      Expected results:

      Same backed up content should be available once restore completes

      Additional info:

      Attachments

        Issue Links

          Activity

            People

              wnstb Wes Hayutin
              rhn-support-jcoscia Javier Coscia
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: