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

[OADP 1.4] Velero restore error: pod volume restore failed: data path restore failed: error getting snapshot size: error running command, stderr=Fatal: unable to open config file: Stat: The specified key does not exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • OADP 1.4.3
    • OADP
    • None
    • Quality / Stability / Reliability
    • 3
    • False
    • Hide

      None

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

      Description of problem:

      velero fs restore with restic failed with this error Velero restore error: pod volume restore failed: data path restore failed: error getting snapshot size: error running command, stderr=Fatal: unable to open config file: Stat: The specified key does not exist.\nIs there a repository at the following location?
      found this error in the restore logs
      ```
      time="2025-03-09T08:03:07Z" level=error msg="Velero restore error: pod volume restore failed: data path restore failed: error getting snapshot size: error running command, stderr=Fatal: unable to open config file: Stat: The specified key does not exist.\nIs there a repository at the following location?\ns3:https://s3.us-east-1.amazonaws.com/bnrdontdelete/br5.1.1/restic/zen\n: exit status 1" logSource="/remote-source/velero/app/pkg/controller/restore_controller.go:604" restore=oadp-operator/cpd-tenant-vol-r-4484a1b8-fcbc-11ef-850d-22220a0d01e5
      ```
      however, on checking the s3 buckets the path does exists

      aws s3 ls bnrdontdelete/br5.1.1/restic/zen/
                                 PRE data/
                                 PRE index/
                                 PRE snapshots/
      

      the only thing missing while comparing another backup is the config file

      aws s3 ls bnrdontdelete/br5.1.1/restic/zem/
                                 PRE data/
                                 PRE index/
                                 PRE keys/
                                 PRE snapshots/
      2025-01-29 05:55:08        155 config  <-------------- this does not exists in the previous command
      

      Version-Release number of selected component (if applicable):

       OADP 1.4.3

       oc get csv -n oadp-operator
      NAME                                  DISPLAY                VERSION   REPLACES                PHASE
      oadp-operator.v1.4.3                  OADP Operator          1.4.3     oadp-operator.v1.4.1    Succeeded
      

      How reproducible:

       

      Steps to Reproduce:
      1. Do velero backup
      2. Do velero restore
      3. Clean up namespaces
      4. Do velero restore again
       

      Actual results

       Restore `PartiallyFailed`

      Expected results:

      Restore `Completed`

      Additional info:
      oadp-must-gather.zip

      reference IBM's github issue link: https://github.ibm.com/PrivateCloud-analytics/CPD-Quality/issues/41525

              wnstb Wes Hayutin
              arie.pratama.s@ibm.com Arie Sutiono (Inactive)
              Prasad Joshi Prasad Joshi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: