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"
  3. OADP-3449

[IBM QE-Z] Verify Bug OADP-3044 - DPA doesnt report "missing region" error on adding "profile: default"

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • OADP 1.3.1
    • None
    • None
    • None
    • False
    • Hide

      None

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

      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:

              uprasad@redhat.com Ukthi Prasad
              akarol@redhat.com Aziza Karol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: