The Failures That Look Like Something Else: XDP programs that vanish and CNI binaries that outlive their cluster

Site Admin · 4 Dec 2026 · Cloud & Virtualization

Two of the three corpus items are not what their titles suggest. #17540 was Calico's Felix removing Cilium's XDP program; #87884 was a stale cilium-cni binary and conflist that survived an uninstall. The verifier fixes #13155 and #13204 are the real code changes, and they land in Calico 3.31.7, 3.32.2 and 3.33.0.

Two of the three corpus items are not what their titles suggest: one is a Calico bug that removes Cilium's XDP program, the other stale CNI files that survived an uninstall. Both were closed as somebody else's problem — correctly.

#17540: the XDP program that disappeared

Cilium 1.10.4, Kubernetes 1.22.1, bare metal, Linux 5.14.8, a Mellanox ConnectX-5 (mlx5_core), with loadBalancer.acceleration=native. bpftool net initially showed the program attached at the driver hook:

xdp:
ens6f0np0(6) driver id 5445

Ten minutes later the xdp: section was empty; the tc programs were still there.

The reporter had installed Cilium on a node that also ran Calico. Calico's Felix logged:

Applying BPF actions did not succeed. Queueing XDP resync.
error=failed to remove XDP program from ens6f0np0:
[remove /sys/fs/bpf/calico/xdp/prefilter_v1_ens6f0np0: no such file or directory ...]

Felix was trying to reconcile its own XDP prefilter state, found no pin under its own path, and removed the XDP program from the interface — which happened to be Cilium's. The reporter confirmed the diagnosis the only way that settles it: "after I uninstall calico, the cilium xdp ebpf always is loaded well." Cilium maintainer Paul Chaignon replied, "Uh, that's annoying. Sounds like a bug in Calico," and the issue was closed as completed the next day.

There is no Cilium fix commit because there was no Cilium defect. The lesson is the one the corpus generalises: XDP attachment is node-global mutable state, and two CNIs on one node will fight over it. The failure is silent — the feature that needed XDP (DSR, NodePort acceleration) simply stops being accelerated, and traffic may fall back or drop.

#87884: the binary that outlived the agent

This one is older and even more mundane. Kubernetes 1.17.2, CentOS 7, kernel 3.10, Cilium 1.6.6, Calico 3.12.0. The operator installed Cilium, removed it, installed Calico, and CoreDNS stuck in ContainerCreating:

failed to create pod sandbox: ... unable to connect to Cilium daemon:
failed to create cilium agent client after 30.000000 seconds timeout:
Get http:///var/run/cilium/cilium.sock/v1/config:
dial unix /var/run/cilium/cilium.sock: connect: no such file or directory

The cause was two files in /opt/cni/bin/: cilium-cni and cilium-cni.old. They were installed by Cilium, not by the kubernetes-cni package, so reinstalling the package did not remove them. The kubelet read /etc/cni/net.d, found 05-cilium.conf first in sort order, and invoked the stale binary, which kept looking for an agent that no longer existed. A cluster reset and an etcd wipe did not help, because neither touches /opt/cni/bin.

Kubernetes closed it on 13 April 2020 with "This is a bug in cilium, not in K8s". A commenter confirmed that Cilium 1.7.1 removes the binaries. The conflist is the part to check; the repair is the uninstall path, not the orchestrator.

Note what this is not: the corpus describes eBPF programs, interfaces, routes and iptables rules left behind. The verified mechanism was a filesystem leftover — the binary and its conflist, not eBPF map debris.

The verifier failures in the same family

Calico shipped two real, small fixes in felix/bpf-gpl/parsing6.h, in 3.31.7, 3.32.2 and 3.33.0:

Neither is in the 3.31.0 or 3.32.0 tags; the fixes land in 3.31.7, 3.32.2 and 3.33.0, and never in 3.30. Part 8 has the matrix; Part 10 packages the diffs.

A third, from 3.33.1: #14354 fixed a policy program rejected with unreachable insn when a workload needed more than one program — the node reported not ready. Same class, different door.

The pattern

Every item in this part fails in the integration layer: two CNIs sharing a hook, a file left in a shared directory, a program that grew past a budget. None is an algorithm bug. All of them are invisible to the Kubernetes API, which is why they take days to diagnose.

Next: Part 7 — the first and most fundamental flaw: the kernel is part of your CNI, and the 5.15 regression that proves it.