-
Bug
-
Resolution: Not a Bug
-
Blocker
-
None
-
False
-
-
False
-
ASSIGNED
-
-
Known Issue
-
Done
-
---
-
---
-
-
Storage Core Sprint 248
-
High
-
No
Description of problem:
disk.img size is smaller than requested on 'px-csi-db-shared' storage class with
when creating a 13Gi DV/PVC.
Version-Release number of selected component (if applicable):
4.14
How reproducible:
Always
Steps to Reproduce:
1. Create a DV with 13Gi storage request:
apiVersion: cdi.kubevirt.io/v1beta1
kind: DataVolume
metadata:
name: cnv-6536
namespace: cdi-import-test-import-htt
spec:
contentType: kubevirt
source:
http:
certConfigMap: internal-https-configmap
url: https://internal-http.cnv-tests-utilities/cirros-qcow2.img
storage:
resources:
requests:
storage: 13Gi
storageClassName: px-csi-db-shared
2. Create a pod that uses this PVC (attaching the yaml)
3. Check the disk.img virtual size, see it's 12G instead of 13Gi:
$ oc exec cnv-6536-pod --namespace=cdi-import-test-import-htt – qemu-img info /pvc/disk.img
image: /pvc/disk.img
file format: raw
virtual size: 12G (13153337344 bytes)
disk size: 13M
4. See the reported PVC capacity is 14Gi:
$ oc get pvc -n cdi-import-test-import-htt
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
cnv-6536 Bound pvc-292dbf65-8a7b-4e11-a27e-f0268858d160 14Gi RWX px-csi-db-shared 46m
$ oc get pvc -n cdi-import-test-import-htt cnv-6536 -oyaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
cdi.kubevirt.io/storage.condition.running: "false"
cdi.kubevirt.io/storage.condition.running.message: Import Complete
cdi.kubevirt.io/storage.condition.running.reason: Completed
cdi.kubevirt.io/storage.contentType: kubevirt
cdi.kubevirt.io/storage.pod.phase: Succeeded
cdi.kubevirt.io/storage.pod.restarts: "1"
cdi.kubevirt.io/storage.populator.progress: 100.0%
cdi.kubevirt.io/storage.preallocation.requested: "false"
cdi.kubevirt.io/storage.usePopulator: "true"
pv.kubernetes.io/bind-completed: "yes"
pv.kubernetes.io/bound-by-controller: "yes"
volume.beta.kubernetes.io/storage-provisioner: pxd.portworx.com
volume.kubernetes.io/storage-provisioner: pxd.portworx.com
creationTimestamp: "2023-09-04T13:19:23Z"
finalizers:
- kubernetes.io/pvc-protection
labels:
alerts.k8s.io/KubePersistentVolumeFillingUp: disabled
app: containerized-data-importer
app.kubernetes.io/component: storage
app.kubernetes.io/managed-by: cdi-controller
app.kubernetes.io/part-of: hyperconverged-cluster
app.kubernetes.io/version: 4.14.0
created-by-dynamic-class-creator: "Yes"
name: cnv-6536
namespace: cdi-import-test-import-htt
ownerReferences:
- apiVersion: cdi.kubevirt.io/v1beta1
blockOwnerDeletion: true
controller: true
kind: DataVolume
name: cnv-6536
uid: cb1f6397-bd7b-45de-bd42-86185ceebfd4
resourceVersion: "340909"
uid: 824bb4e9-1132-4be8-a282-65b7e3acb31d
spec:
accessModes:
- ReadWriteMany
dataSource:
apiGroup: cdi.kubevirt.io
kind: VolumeImportSource
name: volume-import-source-cb1f6397-bd7b-45de-bd42-86185ceebfd4
dataSourceRef:
apiGroup: cdi.kubevirt.io
kind: VolumeImportSource
name: volume-import-source-cb1f6397-bd7b-45de-bd42-86185ceebfd4
resources:
requests:
storage: "14771051548"
storageClassName: px-csi-db-shared
volumeMode: Filesystem
volumeName: pvc-292dbf65-8a7b-4e11-a27e-f0268858d160
status:
accessModes:
- ReadWriteMany
capacity:
storage: 14Gi
phase: Bound
Actual results:
Virtual image size is smaller than requested
Expected results:
Virtual image size is the same as requested
Additional info:
We don't see this issue with the requested size 64Mi and 1Gi - virtual image size is the same as requested.
- is related to
-
CNV-40217 Available space is less than virtual image size while creating VMs from templates on Portworx filesystem volumes
- Closed