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

CloudStorage: bucket is removed on CS CR delete, although it doesn't have "oadp.openshift.io/cloudstorage-delete": "true"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Normal Normal
    • None
    • OADP 1.0.6
    • None
    • None
    • False
    • Hide

      None

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

      Description of problem: CloudStorage: S3 bucket is removed when deleting the CloudStorage CR, although it doesn't have `oadp.openshift.io/cloudstorage-delete="true"`, or has `oadp.openshift.io/cloudstorage-delete="false"`

       

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

      oadp-operator-bundle-container-1.0.6-3

       

      How reproducible: 100%

       

      Steps to Reproduce:
      1. Create a cloudstorage CR which will trigger S3 bucket creation:

      [mperetz@fedora oadp-qe-automation]$ oc get cloudstorages.oadp.openshift.io -A -o yaml
      apiVersion: v1
      items:
      - apiVersion: oadp.openshift.io/v1alpha1
        kind: CloudStorage
        metadata:
          creationTimestamp: "2022-11-23T11:41:36Z"
          finalizers:
          - oadp.openshift.io/bucket-protection
          generation: 1
          name: temp2-oadpbucket158237
          namespace: openshift-adp
          resourceVersion: "155708"
          uid: cea5dfd0-74b1-454d-86fb-237d1c4dccde
        spec:
          creationSecret:
            key: cloud
            name: cloud-credentials
          enableSharedConfig: true
          name: temp2-oadpbucket158237
          provider: aws
          region: us-east-2
        status:
          lastSyncTimestamp: "2022-11-23T11:41:47Z"
          name: temp2-oadpbucket158237
      kind: List
      metadata:
        resourceVersion: ""
       

      2. after the bucket got created, delete the cloudstorage CR:

       oc delete cloudstorages.oadp.openshift.io --all -A 

      3. search for the bucket using the awscli/console

      Actual results: S3 bucket got removed

       

      Expected results: expected behavior was that the bucket will get removed only when has this annotation: oadp.openshift.io/cloudstorage-delete="true"

       

              tkaovila@redhat.com Tiger Kaovilai
              mperetz@redhat.com Maya Peretz
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: