kubevirt / kubevirt

Kubernetes Virtualization API and runtime in order to define and manage virtual machines.
https://kubevirt.io
Apache License 2.0
5.57k stars 1.33k forks source link

virtctl image-upload does not start pod #11078

Closed aep closed 9 months ago

aep commented 9 months ago

when using kubevirt with longhorn, binding a blockdisk seems to work just fine. but i cant upload an iso image

virtctl image-upload  pvc win10iso --size 10G  --image-path=/vault/iso/Win10_22H2_English_x64v1.iso
PVC default/win10iso not found 
PersistentVolumeClaim default/win10iso created
Waiting for PVC win10iso upload pod to be ready...

however, no pod is ever created. and i cant figure out how enable additional debug information

aep commented 9 months ago

oof, user error, i misunderstood how this works. the relevant logs are in the cdi pods, since thats what creates the upload pod, not in virtctl itself.

ss-armada commented 5 months ago

@aep How was this issue resolved ?

manas-suleman commented 4 months ago

@aep @ss-armada I have exactly the same issue and don't see any logs in cdi pods as well. did you folks manage to resolve this issue?

ss-armada commented 4 months ago

@manas-suleman I wasn’t able to resolve this but found a work around. Before running the command I create a datavolume yaml with source as upload {}. It creates a data volume and pvc awaiting upload. Then you can use inage-upload command and it works fine.

notyep commented 3 months ago

the --force-bind option at the end of the virtctl string resolved the issue for me.