foundation-model-stack/multi-nic-cni

failed to create ipvlan: operation not supported

Closed this issue · 2 comments

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.

  • manager container of controller and multi-nicd DS status:
  • multinicnetwork CR:
  • hostinterface list/CR:
  • cidr CR (multiNICIPAM: true):
  • ippools CR (multiNICIPAM: true):
  • log of manager container:
  • log of failed multi-nicd pod:

Environment (please complete the following information):

  • platform: [e.g. self-managed k8s, self-managed OpenShift, EKS, IKS, AKS]
  • node profile:
  • operator version :
  • cluster scale (number of nodes, pods, interfaces):

Additional context
Add any other context about the problem here.

@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

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