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

DPA doesnt report "missing region" error on adding "profile: default"

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • oadp-operator-bundle-container-1.3.1-35
    • ToDo
    • 0
    • 0
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown
    • No

      Description of problem:

      While creating DPA with backupstorage Location as aws bucket, and not providing the region in the velero configs, it reports the error. But the error is gone after adding profile: default to the config.

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

      1.3

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create DPA without config section

      $ oc get dpa -o yaml
      apiVersion: v1
      items:
      - apiVersion: oadp.openshift.io/v1alpha1
        kind: DataProtectionApplication
        metadata:
          creationTimestamp: "2023-11-03T06:18:16Z"
          generation: 42
          name: ts-dpa
          namespace: openshift-adp
          resourceVersion: "273231"
          uid: 6df1a172-0499-421e-be0f-a4edc5df7925
        spec:
          backupLocations:
          - velero:
              credential:
                key: cloud
                name: cloud-credentials-aws
              default: true
              objectStorage:
                bucket: oadpbucket244493
                prefix: awsbucket
              provider: aws
          configuration:
            nodeAgent:
              enable: true
              uploaderType: restic
            velero:
              defaultPlugins:
              - openshift
              - aws
              - gcp
        status:
          conditions:
          - lastTransitionTime: "2023-11-03T14:52:19Z"
            message: region for AWS backupstoragelocation cannot be empty when s3ForcePathStyle
              is true or when backing up images
            reason: Error
            status: "False"
            type: Reconciled
      kind: List
      

      2. Now edit the dpa, and add config.profile field as "default"

      apiVersion: v1
      items:
      - apiVersion: oadp.openshift.io/v1alpha1
        kind: DataProtectionApplication
        metadata:
          creationTimestamp: "2023-11-03T06:18:16Z"
          generation: 43
          name: ts-dpa
          namespace: openshift-adp
          resourceVersion: "273545"
          uid: 6df1a172-0499-421e-be0f-a4edc5df7925
        spec:
          backupLocations:
          - velero:
              config:
                profile: default
              credential:
                key: cloud
                name: cloud-credentials-aws
              default: true
              objectStorage:
                bucket: oadpbucket244493
                prefix: awsbucket
              provider: aws
          configuration:
            nodeAgent:
              enable: true
              uploaderType: restic
            velero:
              defaultPlugins:
              - openshift
              - aws
              - gcp
        status:
          conditions:
          - lastTransitionTime: "2023-11-03T14:53:33Z"
            message: Reconcile complete
            reason: Complete
            status: "True"
            type: Reconciled
      kind: List
      metadata:
        resourceVersion: ""
      

      Actual results:

      DPA reconciles successfully

      Expected results:

      It should report the region missing error.

      Additional info:

            spampatt@redhat.com Shubham Pampattiwar
            rhn-support-ssingla Sachin Singla
            Sachin Singla Sachin Singla
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: