foundation-model-stack / multi-nic-cni

https://foundation-model-stack.github.io/multi-nic-cni/
Apache License 2.0
33 stars 5 forks source link

failed to create ipvlan: operation not supported #192

Closed cyclinder closed 2 months ago

cyclinder commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

I follow the official docs to create a simple pod, but I got the error with:

Warning  FailedCreatePodSandBox  13s   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "aa5fe4b909afb597a0c010d352ffc05268aca1465600577fbffdd86132b358e0": plugin type="multus" name="multus-cni-network" failed (add): [default/macvlan-54d88bf5ff-278zp/fd12cad8-69a4-4248-b620-4440d6b584e7:multi-nic-sample]: error adding container to network "multi-nic-sample": failed to create ipvlan: operation not supported

To Reproduce Steps to reproduce the behavior:

  1. create a multi-nic-sample with https://github.com/foundation-model-stack/multi-nic-cni?tab=readme-ov-file#multinicnetwork
  2. create a pod with the annotation

Expected behavior A clear and concise description of what you expected to happen.

the pod should be running well.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here.

sunya-ch commented 2 months ago

@cyclinder Could you please share us which kernel version you are using? According to the error, it seems that the CNI binary is correct since it can run multus CNI. So, I expect that the issue comes from the kernel version which does not support ipvlan. ipvlan CNI requires kernel version >= 4.2. https://github.com/foundation-model-stack/multi-nic-cni?tab=readme-ov-file#requirements

cyclinder commented 2 months ago

Thanks @sunya-ch! yes, you are right. I missed the point, My kernel version is 3.10, and let me close it.