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

BSL imagestream region validation change OR to AND "when s3ForcePathStyle is true or when backing up images"

    XMLWordPrintable

Details

    • False
    • Hide

      None

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

    Description

      Description of problem:

      While creating the DPA, on setting backupImages as false and velero.config.s3ForcePathStyle as true for the AWS bucket, DPA reconciles successfully and doesnt report the error that region is missing.

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

      1.3

      How reproducible:

      Always

      Steps to Reproduce:

      Create DPA with the below configuration

      apiVersion: oadp.openshift.io/v1alpha1
      kind: DataProtectionApplication
      metadata:
        creationTimestamp: "2023-11-03T06:18:16Z"
        generation: 33
        name: ts-dpa
        namespace: openshift-adp
        resourceVersion: "132718"
        uid: 6df1a172-0499-421e-be0f-a4edc5df7925
      spec:
        backupImages: false
        backupLocations:
        - velero:
            config:
              s3ForcePathStyle: "true"
            credential:
              key: cloud
              name: cloud-credentials-aws
            objectStorage:
              bucket: oadpbucket244493
              prefix: awsbucket
            provider: aws
            validationFrequency: 20s
        configuration:
          velero:
            defaultPlugins:
            - openshift
            - csi
            - aws
      status:
        conditions:
        - lastTransitionTime: "2023-11-03T08:54:54Z"
          message: Reconcile complete
          reason: Complete
          status: "True"
          type: Reconciled
      
      

      Actual results:

      It reconciles successfully

      Expected results:

      Error should be reported:

        status:
          conditions:
          - lastTransitionTime: "2023-11-03T08:15:49Z"
            message: region for AWS backupstoragelocation cannot be empty when s3ForcePathStyle
              is true or when backing up images
            reason: Error
            status: "False"
            type: Reconciled
      

      Additional info:

      Attachments

        Activity

          People

            tkaovila@redhat.com Tiger Kaovilai
            rhn-support-ssingla Sachin Singla
            Amos Mastbaum Amos Mastbaum
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: