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

Creating backup on AWS partially fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • OADP 1.0.0
    • None
    • None
    • None
    • False
    • False
    • Passed
    • 0
    • 0
    • 0
    • Untriaged
    • None

      Description of problem: backup always fails on AWS since OADP 0.5.4. Verified on build  155353 and it was not reproducible.

      Severity: Blocker

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

      http://registry-proxy.engineering.redhat.com/rh-osbs/iib:157683

      How reproducible: Always

      Steps to Reproduce:

      1. Create DPA and secret:
       oc create secret generic cloud-credentials -n velero --from-file cloud=<creds file>
        kind: DataProtectionApplication
        metadata:
          creationTimestamp: "2022-01-12T15:08:59Z"
          generation: 1
          name: example-velero
          namespace: velero
          resourceVersion: "216427"
          uid: 138d69e4-71c2-4697-990f-9be8f268420f
        spec:
          backupLocations:
          - velero:
              config:
                profile: snapshot
                region: us-east-2
              credential:
                key: cloud
                name: cloud-credentials
              default: true
              objectStorage:
                bucket: mayapvelerooadp
                prefix: velero
              provider: aws
          configuration:
            restic:
              enable: true
            velero:
              defaultPlugins:
              - openshift
              - csi
              - aws
          snapshotLocations:
          - velero:
              config:
                profile: snapshot
                region: us-east-2
              provider: aws
       
      1. Create backup of some app and check the result

       

      Actual results: keeps failing with this error:

      time="2022-01-12T14:41:35Z" level=error msg="Error getting volume snapshotter for volume snapshot location" backup=velero/backup9 error="rpc error: code = Unknown desc = NoCredentialProviders: no valid providers in chain. Deprecated.\n\tFor verbose messaging see aws.Config.CredentialsChainVerboseErrors" error.file="/remote-source/app/velero-plugin-for-aws/volume_snapshotter.go:66" error.function=main.getSession logSource="pkg/backup/item_backupper.go:449" name=pvc-ffc80f0b-f408-44a5-9656-344ca998447b namespace= persistentVolume=pvc-ffc80f0b-f408-44a5-9656-344ca998447b resource=persistentvolumes volumeSnapshotLocation=example-velero-

       

      Here is the console output after installing 15535 and after installing 157683:

      https://privatebin.corp.redhat.com/?031d2d8ee2a121da#BKSRSLnda82FCHED8oAxsyEVWbhbaX19p9cvSyNCdsiD

       

              rhn-engineering-dymurray Dylan Murray
              mperetz@redhat.com Maya Peretz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: