Problem Using host-device CNI plugin #513
Replies: 3 comments 8 replies
-
Hi Christopher @infinitydon, First, I'd check that every thing is OK with K8s+multus. Could you exclude eth2(n6-eupf1) from eUPF configuration in order not to attach xdp program to it? Will connectivity be OK? Also could you please enable debug logs(tracepipe) and check what's happening in ebpf xdp when you're experiencing connectivity loss? -- BR, Alex |
Beta Was this translation helpful? Give feedback.
-
@infinitydon I see no downlink packets in log for your test traffic flow. This flow was forwarded to N6
But seems like no incoming packets Considering packet drops, I suppose that packets are dropped on RX. So eUPF even don't see any packets. May be there is some issue with checksums?
|
Beta Was this translation helpful? Give feedback.
-
Yes, we have tested native mode in K8s. And it's little bit tricky. For veth drive in order to load ebpf program in native mode inside a pod you have to load ebpf program (any) on corresponding veth paired interface on the host. See #116 for details. You can use zero_entrypoint_bpf program from eupf container. In order to use virtio_net, vmxnet3 with native xdp mode some hypervisor options have to be tuned. See discussion #507 But. I think that your initial problem is not in the attachement mode. I'd rather investigate rx drops. You can see detailed info about drop reason using tools like |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to use host-device plugin for the N6 interface in the eUPF but once the upf process starts connectivity stops working..
Example multus config:
eUPF annotation:
Ping test to 192.168.101.3 fails and also when I ping from the eUPF pod it also fails.
Weird part also is that host interface eth2 will not be useable at all even if I delete the eUPF from the k8s cluster, the only time it can be used again is when I reboot the whole VM.
I tested with macvlan plugin and it works without any issues (the only issue is that native mode does not work with macvlan)
Any idea on what could be wrong?
Beta Was this translation helpful? Give feedback.
All reactions