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

BSLs / VSLs are not cleared when DPA CR is modified

XMLWordPrintable

    • 10
    • False
    • Hide

      None

      Show
      None
    • False
    • oadp-operator-bundle-container-1.3.4-13
    • ToDo
    • 0
    • 0.000
    • Very Likely
    • 0
    • None
    • Unset
    • Unknown
    • No

      Description of problem:

      When any DPA is modified to remove the BSL or VSL from the backupLocations OR snapshotLocations section, BSL / VSL are not removed from the cluster until the DPA is deleted.

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

      1.3

      How reproducible:

      Always

      Steps to Reproduce:
      1. Create a DPA including BSL and VSL

      $ oc get dpa -o yaml
      apiVersion: v1
      items:
      - apiVersion: oadp.openshift.io/v1alpha1
        kind: DataProtectionApplication
        metadata:
          creationTimestamp: "2023-11-07T06:13:45Z"
          generation: 1
          name: ts-dpa
          namespace: openshift-adp
          resourceVersion: "37907"
          uid: a5e9e075-4793-402f-93bb-ded3b564b574
        spec:
          backupLocations:
          - velero:
              credential:
                key: cloud
                name: cloud-credentials-gcp
              default: true
              objectStorage:
                bucket: oadpbucket245071
                prefix: velero
              provider: gcp
          configuration:
            nodeAgent:
              enable: true
              uploaderType: kopia
            velero:
              defaultPlugins:
              - openshift
              - csi
              - gcp
          snapshotLocations:
          - velero:
              credential:
                key: cloud
                name: cloud-credentials-gcp
              provider: gcp
        status:
          conditions:
          - lastTransitionTime: "2023-11-07T06:13:45Z"
            message: Reconcile complete
            reason: Complete
            status: "True"
            type: Reconciled
      kind: List
      metadata:
        resourceVersion: ""
      
      

      BSL:

      $ oc get bsl
      NAME       PHASE       LAST VALIDATED   AGE    DEFAULT
      ts-dpa-1   Available   35s              8m4s   true
      
      

      VSL:

      $ oc get vsl
      NAME       AGE
      ts-dpa-1   8m6s
      
      

      2. Remove the VSL or BSL section from the DPA using "oc edit dpa"

      Removing VSL in this case.

      $ oc get dpa -o yaml
      apiVersion: v1
      items:
      - apiVersion: oadp.openshift.io/v1alpha1
        kind: DataProtectionApplication
        metadata:
          creationTimestamp: "2023-11-07T06:13:45Z"
          generation: 1
          name: ts-dpa
          namespace: openshift-adp
          resourceVersion: "37907"
          uid: a5e9e075-4793-402f-93bb-ded3b564b574
        spec:
          backupLocations:
          - velero:
              credential:
                key: cloud
                name: cloud-credentials-gcp
              default: true
              objectStorage:
                bucket: oadpbucket245071
                prefix: velero
              provider: gcp
          configuration:
            nodeAgent:
              enable: true
              uploaderType: kopia
            velero:
              defaultPlugins:
              - openshift
              - csi
              - gcp
        status:
          conditions:
          - lastTransitionTime: "2023-11-07T06:13:45Z"
            message: Reconcile complete
            reason: Complete
            status: "True"
            type: Reconciled
      kind: List
      metadata:
        resourceVersion: ""
      

      Actual results:

      BSL/VSL not removed from the cluster

      $ oc get vsl
      NAME       AGE
      ts-dpa-1   11m
      
      

      Expected results:

      BSL/VSL should be removed from the cluster

      Additional info:

              rhn-support-ssingla Sachin Singla
              rhn-support-ssingla Sachin Singla
              Prasad Joshi Prasad Joshi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: