-
Bug
-
Resolution: Not a Bug
-
Normal
-
None
-
None
-
None
-
Quality / Stability / Reliability
-
2
-
False
-
-
False
-
CNV v4.20.0.rhel9-92
-
-
CNV Storage 275, CNV Storage 276
-
None
Description of problem:
PVC with 5.27 GiB unable to bound due to dv stuck import in progress with 5Gi storage size requst when image is larger than 5Gi
Version-Release number of selected component (if applicable):
gcnv-4.20
How reproducible:
100% reproducable
Steps to Reproduce:
1.deploy a cnv,gcnv cluster 2.create a dv within the gcnv storageclass, dv request size = 5Gi, image:URL: docker://quay.io/openshift-cnv/qe-cnv-tests-fedora:41 apiVersion: cdi.kubevirt.io/v1beta1 kind: DataVolume metadata: annotations: cdi.kubevirt.io/storage.usePopulator: "true" creationTimestamp: "2025-07-30T10:17:45Z" generation: 1 name: import-public-registry-low-capacity-dv namespace: cdi-import-test-import-registr resourceVersion: "1823395" uid: c46bc4f6-1ccf-4a72-a346-5cebc6ccd9ff spec: contentType: kubevirt source: registry: url: docker://quay.io/openshift-cnv/qe-cnv-tests-fedora:41 storage: resources: requests: storage: 5Gi storageClassName: gcnv-flex 3.wait for dv import (notice the pvc CAPACITY is larger than 5Gi) oc get pvc -A NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE cdi-import-test-import-registr import-public-registry-low-capacity-dv Pending gcnv-flex <unset> 57s cdi-import-test-import-registr prime-e99808ce-70db-4de4-825a-e242e868af15 Bound pvc-266c4bfc-9e41-4db9-93c7-6c2e0590b46b 5663988122 RWX gcnv-flex <unset> 57s cdi-import-test-import-registr prime-e99808ce-70db-4de4-825a-e242e868af15-scratch Bound pvc-0deadfd1-94d0-48b5-9ddc-c53ab51b7bdb 5402Mi RWO gcnv-flex <unset> 57s from the DV will get: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Pending 2m25s datavolume-import-controller PVC import-public-registry-low-capacity-dv Pending Warning Unschedulable 2m25s datavolume-import-controller Importer pod cannot be scheduled Normal ImportScheduled 97s datavolume-import-controller Import into import-public-registry-low-capacity-dv scheduled Normal ImportInProgress 89s datavolume-import-controller Import into import-public-registry-low-capacity-dv in progress Warning Error 42s datavolume-import-controller DataVolume too small to contain image
Actual results:
datavolume-import-controller DataVolume too small to contain image Unable to process data: Unable to convert source data to target format: virtual image size 5368709120 is larger than the reported available storage 5368381440. A larger PVC is required
Expected results:
auto expand / round up the dv size up to 6gi or any fit size
in different sc (filesytem) ocs-storagecluster-cephfs (for instance) i see dv was expand / rounded to 6Gi which fit the image (the dv request was 5Gi) oc get pvc -A NAMESPACE NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE cdi-import-test-import-registr import-public-registry-low-capacity-dv Bound pvc-187f562b-7bde-4c25-a6f6-a074da88327a 6Gi RWX ocs-storagecluster-cephfs <unset> 114s
Additional info:
T2 test::test_public_registry_data_volume_low_capacity
expanding the requst to 6Gi manually will make everythin works