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

DPA bsl s3url config is trimmed when passed to BSL

XMLWordPrintable

    • False
    • Hide

      None

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

      bsl is created with s3url: "http:" when  http://10.0.188.30:9000 is defined in the dpa

      DPA 

       

       apiVersion: oadp.openshift.io/v1alpha1
      kind: DataProtectionApplication
      metadata:
        creationTimestamp: '2023-10-11T08:19:12Z'
        ...
        name: ts-dpa
        namespace: openshift-adp
        resourceVersion: '15950545'
        uid: 3b0b667b-1e1d-4683-b7c6-fec2b49fe8ad
      spec:
        backupLocations:
          - velero:
              config:
                insecureSkipTLSVerify: 'true'
                profile: default
                region: minio
                s3ForcePathStyle: 'true'
                s3Url: 'http://10.0.188.30:9000' <-----------------------------
              credential:
                key: cloud
                name: cloud-credentials
              default: true
              objectStorage:
                bucket: amos-28aug2023
                prefix: velero-e2e-db37818a-680e-11ee-8583-0c9a3c9340c2
              provider: aws
        configuration:
          nodeAgent:
            enable: true
            podConfig:
              resourceAllocations:
                requests:
                  cpu: 100m
                  memory: 64Mi
            uploaderType: kopia
          velero:
            defaultPlugins:
              - openshift
              - aws
              - kubevirt
              - csi
            podConfig:
              resourceAllocations:
                requests:
                  cpu: 100m
                  memory: 64Mi
        podDnsConfig: {}
        snapshotLocations: []
      status:
        conditions:
          - lastTransitionTime: '2023-10-11T08:19:12Z'
            message: Reconcile complete
            reason: Complete
            status: 'True'
            type: Reconciled
      

      BSL

      piVersion: velero.io/v1
      kind: BackupStorageLocation
      metadata:
        resourceVersion: '15957260'
        name: ts-dpa-1
        uid: 2f9decd9-7616-4a23-9216-63f102978042
        creationTimestamp: '2023-10-11T08:19:12Z'
        ...
        namespace: openshift-adp
        ownerReferences:
          - apiVersion: oadp.openshift.io/v1alpha1
            blockOwnerDeletion: true
            controller: true
            kind: DataProtectionApplication
            name: ts-dpa
            uid: 3b0b667b-1e1d-4683-b7c6-fec2b49fe8ad
        labels:
          app.kubernetes.io/component: bsl
          app.kubernetes.io/instance: ts-dpa-1
          app.kubernetes.io/managed-by: oadp-operator
          app.kubernetes.io/name: oadp-operator-velero
          openshift.io/oadp: 'True'
          openshift.io/oadp-registry: 'True'
      spec:
        config:
          insecureSkipTLSVerify: 'true'
          profile: default
          region: minio
          s3ForcePathStyle: 'true'
          s3Url: 'https:' <-------------------------
        credential:
          key: cloud
          name: cloud-credentials
        default: true
        objectStorage:
          bucket: amos-28aug2023
          prefix: velero-e2e-db37818a-680e-11ee-8583-0c9a3c9340c2
        provider: aws
      status:
        lastValidationTime: '2023-10-11T08:45:02Z'
        message: >-
          BackupStorageLocation "ts-dpa-1" is unavailable: rpc error: code = Unknown
          desc = RequestError: send request failed
      
          caused by: Get
          "https:///amos-28aug2023?delimiter=%2F&list-type=2&prefix=velero-e2e-db37818a-680e-11ee-8583-0c9a3c9340c2%2F":
          http: no Host in request URL
        phase: Unavailable
      

            marnold@redhat.com Matthew Arnold
            amastbau Amos Mastbaum
            Amos Mastbaum Amos Mastbaum
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: