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

velero restore of a namespace is PartiallyFailed with "Error retrieving in-cluster version of <image>:" & "Namespace <namespacename>, resource restore error:"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • OADP 1.2.6
    • OADP-1.2.2
    • OADP, velero
    • None
    • False
    • Hide

      None

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

      Cu has OADP 1.2.2 installed.
      velero restore of a namespace is in PartiallyFailed phase, although all items in a namespace are completely restored. 
      Cu's query is  why is the below Errors still seen although the imagestream was existing in the Namespace that was restored?:

      ```
      $ velero restore describe peterfuliertest-o-restore
      Name:         peterfuliertest-o-restore
      Namespace:    openshift-adp
      Labels:       <none>
      Annotations:  <none>

      Phase:                       PartiallyFailed (run 'velero restore logs peterfuliertest-o-restore' for more information)
      Total items to be restored:  31
      Items restored:              31

      Started:    2023-10-23 11:49:57 +0000 UTC
      Completed:  2023-10-23 11:50:06 +0000 UTC

      Errors:
        Velero:     <none>
        Cluster:    <none>
        Namespaces:
          peterfuliertest-o:  imagestreamtags.image.openshift.io "nginx-unprivileged:latest" not found

      ```
       

      How reproducible: 100%

       

      How to reproduce? 

      • Install OADP 1.2.2
      • Deploy an application(via Openshift console) using dockerhub image in ns/peterfuliertest-o
      • configure `velero backup` for all namespaces (using "includedNamespaces:  - '*'") to run using Schedule every 24 hours. Make sure that the latest backup exist.
      • delete ns/peterfuliertest-o
      • run `velero restore` of the deleted ns/peterfuliertest-o from the latest backup

      Expected result:

      • velero restore object should {}not{} be in PartiallyFailed phase
      • All objects expected within ns/peterfuliertest-o are restored, the workload is up and running and the route is also working for the application. Errors ` Error retrieving in-cluster version of <images>: ....` & `Namespace peterfuliertest-o, resource restore error: <image> not found ...` should not be reported

      Actual result: 

      • velero restore object is in PartiallyFailed phase
      • All objects expected within ns/peterfuliertest-o are restored, the workload is up and running and the route is also working for the application. However, velero restore is in PartiallyFailed phase and the below errors are seen:
        ```
        $ velero restore logs peterfuliertest-o-restore | grep error
        time="2023-10-23T11:50:01Z" level=error msg="Error retrieving in-cluster version of peterfuliertest-o/nginx-unprivileged:latest: imagestreamtags.image.openshift.io \"nginx-unprivileged:latest\" not found" logSource="/remote-source/velero/app/pkg/restore/restore.go:1360" restore=openshift-adp/peterfuliertest-o-restore
        time="2023-10-23T11:50:02Z" level=error msg="Namespace peterfuliertest-o, resource restore error: imagestreamtags.image.openshift.io \"nginx-unprivileged:latest\" not found" logSource="/remote-source/velero/app/pkg/controller/restore_controller.go:499" restore=openshift-adp/peterfuliertest-o-restore
        ```

              tkaovila@redhat.com Tiger Kaovilai
              rhn-support-vchalise Vibhuti Chalise
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: