Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-36326

[2248845] [4.14.1] Deleting OCS PVC doesnt result in new bound PVC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Minor Minor
    • CNV v4.14.4
    • CNV v4.14.1
    • CNV Storage
    • Storage Core Sprint 248, Storage Core Sprint 249

      Description of problem:
      When creating OCS DV, and delete its bound PVC,
      the PVC get's recreated but the DV doesn't re-import.
      The DV status is "SUCCESS", and the PVC is "PENDING"

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

      4.14.1.rhel9-62 - and the next builds
      4.15.0.rhel9-1615 - and the next builds{}

      How reproducible:
      Always

      Steps to Reproduce:
      1. Create cirros dv:

      apiVersion: cdi.kubevirt.io/v1beta1
      kind: DataVolume
      metadata:
      labels:
      created-by-dynamic-class-creator: 'Yes'
      name: import-http-dv
      namespace: cdi-import-test-import-htt
      spec:
      contentType: kubevirt
      source:
      http:
      url: http://cnv-qe-server.rhos-psi.cnv-qe.rhood.us/files/cnv-tests/cirros-images/cirros-0.4.0-x86_64-disk.qcow2
      storage:
      resources:
      requests:
      storage: 500Mi
      storageClassName: ocs-storagecluster-ceph-rbd-virtualization

      2. Wait for DV success and PVC to be BOUND, then delete the pvc.

      3. the result:
      NAME PHASE PROGRESS RESTARTS AGE
      datavolume.cdi.kubevirt.io/import-http-dv Succeeded N/A 3m42s

      NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
      persistentvolumeclaim/import-http-dv Pending ocs-storagecluster-ceph-rbd-virtualization 80s

      Actual results:
      The new PVC is Pending and not BOUND.
      And the DV in SUCCESS despite that.

      Expected results:
      Re-import into a new PVC which reach to BOUND status.

      Additional info:
      Another provisioners works as expected(SC like nfs,hostpath).

      Git Pull Request: https://github.com/kubevirt/containerized-data-importer/pull/3073 closed

            skagan@redhat.com Shelly Kagan
            rh-ee-hmeir Harel Meir
            Harel Meir Harel Meir
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: