Hello,
I've come across kubelet pod init issues that emit Warning events in the virt-luancher pod context, but nothing bubbles up to the VM/VMI and it simply remains in "Scheduling" state.
This has been witnessed with different types of CNI errors that fail the runtime in creation of the network sandbox.
One example of provoking this, is if I rename the CNI type in the NAD to a name that does not exist: e.g. I added an xx- prefix to the passt cni type to xx-kubevirt-passt-binding.
In the pod context an event is emitted:
Warning FailedCreatePodSandBox 5s (x5 over 54s) kubelet (combined from similar events): Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create ... error adding container to network "primary-udn-kubevirt-binding": plugin type="xx-kubevirt-passt-binding" failed (add): failed to find plugin "xx-kubevirt-passt-binding" in path [/opt/cni/bin]
However the VMI knows nothing about this:
$ k get vmi
NAME AGE PHASE IP NODENAME READY
vm-a 15m Scheduling False
And its events:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulCreate 15m virtualmachine-controller Created virtual machine pod virt-launcher-vm-a-cj2bz
This seems like a bug that is affecting UX.
Please advise if you think that we can fix this.
Regards
Nir Dothan
SIG Network