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

GCP: setting custom secret name fails reconciliation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • OADP 1.0.3
    • OADP 1.0.3
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Passed
    • 0
    • 0
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown
    • Yes

      Problem description: DPA fails to reconcile with any custom name on GCP with the following error:

      Deployment.apps "oadp-ts-dpa-1-gcp-registry" is invalid: spec.template.spec.containers[0].volumeMounts[0].name:
              Not found: "bsl-cloud-credentials-gcp"

       

      Steps to reproduce:

      Create custom secret bsl-cloud-credentials-gcp, and DPA as follows:

      cat <<EOF | oc create -f -
      apiVersion: v1
      items:
      - apiVersion: oadp.openshift.io/v1alpha1
        kind: DataProtectionApplication
        metadata:
          name: ts-dpa
          namespace: openshift-adp
        spec:
          backupLocations:
          - velero:
              credential:
                key: cloud
                name: bsl-cloud-credentials-gcp
              default: true
              objectStorage:
                bucket: oadpbucket105928
                prefix: velero-e2e-ddd9abc3-dbfa-11ec-8141-902e163f806c
              provider: gcp
          configuration:
            restic:
              podConfig:
                resourceAllocations: {}
            velero:
              defaultPlugins:
              - openshift
              - kubevirt
              - gcp
          podDnsConfig: {}
          snapshotLocations:
          - velero:
              config:
                project: openshift-qe
                snapshotLocation: us-central1
              provider: gcp
      kind: List
      metadata:
        resourceVersion: ""
        selfLink: ""
      EOF

      Issue is not reproduced on 1.0.2

              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: