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

Cloudstorage API: Backup of an app with internal images partially fails with plugin panicked error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Blocker Blocker
    • OADP 1.2.2
    • OADP 1.1.1
    • registry
    • False
    • Hide

      None

      Show
      None
    • False
    • QE - Ack
    • oadp-operator-bundle-container-1.2.2-16
    • Passed
    • 0
    • 0
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown
    • Yes

      Description of problem:  Backup of an app with internal images partially fails with plugin panicked error. I think that's the reason since I tried the same using MSSQL app, which uses public images, and it was successful.

       

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

      oadp-operator-bundle-container-1.0.6-3

       

      How reproducible: 100%

       

      Steps to Reproduce:
      1. Create a secret for IAM role based creds

      2. Create a cloudstorage CR pointing to those creds

      apiVersion: v1
      items:
      - apiVersion: oadp.openshift.io/v1alpha1
        kind: CloudStorage
        metadata:
          name: temp2-oadpbucket158237
          namespace: openshift-adp
        spec:
          creationSecret:
            key: cloud
            name: cloud-credentials
          enableSharedConfig: true
          name: temp2-oadpbucket158237
          provider: aws
          region: us-east-2
      kind: List
      metadata:
        resourceVersion: ""

      3. Create a DPA which refers that cloudstorage:

      apiVersion: v1
      items:
      - apiVersion: oadp.openshift.io/v1alpha1
        kind: DataProtectionApplication
        metadata:
          name: ts-dpa
          namespace: openshift-adp
        spec:
          backupLocations:
          - bucket:
              cloudStorageRef:
                name: temp2-oadpbucket158237
              config:
                enableSharedConfig: "true"
                region: us-east-2
              credential:
                key: cloud
                name: cloud-credentials
              default: true
          configuration:
            restic:
              podConfig:
                resourceAllocations: {}
            velero:
              defaultPlugins:
              - openshift
              - aws
              - kubevirt
              - csi
          podDnsConfig: {}
          snapshotLocations: []
      kind: List
      metadata:
        resourceVersion: ""
       

      3. Create a backup of an app which has internal images, such as django app.

      Actual results:

      Backup parially fails with this error in the velero logs:

      time="2022-11-23T15:40:46Z" level=info msg="1 errors encountered backup up item" backup=openshift-adp/django-persistent-67a5b83d-6b44-11ed-9cba-902e163f806c logSource="/remote-source/velero/app/pkg/backup/backup.go:413" name=django-psql-persistent
      time="2022-11-23T15:40:46Z" level=error msg="Error backing up item" backup=openshift-adp/django-persistent-67a5b83d-6b44-11ed-9cba-902e163f806c error="error executing custom action (groupResource=imagestreams.image.openshift.io, namespace=django-persistent, name=django-psql-persistent): rpc error: code = Aborted desc = plugin panicked: runtime error: index out of range [1] with length 1" error.file="/remote-source/velero/app/pkg/backup/item_backupper.go:316" error.function="github.com/vmware-tanzu/velero/pkg/backup.(*itemBackupper).executeActions" logSource="/remote-source/velero/app/pkg/backup/backup.go:417" name=django-psql-persistent
       

      Expected results: 

       

      Additional info:

            tkaovila@redhat.com Tiger Kaovilai
            mperetz@redhat.com Maya Peretz
            Prasad Joshi Prasad Joshi
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: