This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2248845 - [4.15] Deleting OCS PVC doesnt result in new bound PVC
Summary: [4.15] Deleting OCS PVC doesnt result in new bound PVC
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Storage
Version: 4.15.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Adam Litke
QA Contact: Harel Meir
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-09 09:28 UTC by Harel Meir
Modified: 2023-12-14 16:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-12-14 16:04:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker   CNV-35085 0 None None None 2023-12-14 16:04:38 UTC

Description Harel Meir 2023-11-09 09:28:06 UTC
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.15.0(build v4.15.0.rhel9-1615)

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).


Note You need to log in before you can comment on or make changes to this bug.