PV not getting created when PVC has dataSource and dataSourceRef keys #930
-
Hi, Very new to using CSI drivers and just deployed csi-driver-nfs to OKD4.15 baremetal cluster. Deployed it to dynamically provision pvs for virtual machines via kubevirt. It is working just fine for most part. Now, in kubevirt, when I try to upload a VM image file to add a boot volume, it creates a corresponding pvc to hold the image. This particular pvc doesn't get bound by csi-driver-nfs as no pv gets created for it. Looking at the logs of
Looking online and asking AI, I find the reason for this to be dataSource and dataSourceRef keys in pvcs. Apparently they're saying to csi-driver-nfs that another driver will be provisioning the volume for this. I've confirmed that the pvcs that bound successfully don't have dataSource and dataSourceRef defined. This is the spec for the pvc that gets created by the boot volume widget in kubevirt:
Now, being very new to this, I'm lost as to how to fix this. Really appreciate any help I can get in how this can be resolved. Please let me know if I need to provide any more info. Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Some more observations about this issue: PV gets created and binds when dataSource is I see the following relevant logs in cdi deployment pod:
|
Beta Was this translation helpful? Give feedback.
-
There was no issue and cs-driver-nfs was working as expected. PVC size needed to be specified significantly more than the image size, for a 13GB iso image, I had to specify 30GB+ size for PVC and it worked fine. Would have been great if cdi had logs that pointed to this issue. |
Beta Was this translation helpful? Give feedback.
There was no issue and cs-driver-nfs was working as expected. PVC size needed to be specified significantly more than the image size, for a 13GB iso image, I had to specify 30GB+ size for PVC and it worked fine. Would have been great if cdi had logs that pointed to this issue.