Alasdair McWilliam
Alasdair McWilliam
Some initial investigative notes. Can repro manually on EKS (Amazon Linux 2023.12.20260611, k8s v1.35.6-eks-93b80c6, Cilium 1.20-dev, kernel 6.12.90-120.164.amzn2023.x86_64). Mostly replicating the setup from the CI run, including `endpointHealthChecking.enabled=false` to reduce...
**Personal notes** Can now successfully repro in kind, requires native routing and associated bits. When monitoring from a client endpoint (TCP SYN): ``` unknown state unknown ifindex 0 orig-ip 0.0.0.0:...
Issue tracked down to redirection of packet from L7 LB towards a local backend pod. When using netkit, the skb has already switched to the backend endpoint netns before `cil_to_container`...
> Note that this would also be fixed by [#46055](https://github.com/cilium/cilium/pull/46055). That seems the nicer overall fix but will take time to filter through. I guess we'll need to maintain multiple...
@julianwiedmann > Could/should we even do the same when using veth interfaces instead of netkit? Tinkering with just a plain `use_redirect=!from_l7lb` with veth. **endpointRoutes=false** This seems to introduce a different...
> This is exactly what we're now proposing for netkit though, to fix the L7-LB delivery bug? I'd say .. "ish". In the veth case, my comment was because the...
> You're thinking about a flow towards an endpoint with L7 ingress network policy, which gets evaluated by to-container and triggers a redirect to envoy? Specifically the backend flow from...
> Is this a new test this release? Or new functionality? It's not new functionality. It is a new test though. Intent was to dip our toe with testing netkit...
Further, I would say it's likely been broken for a while. I would be confident it's broken on v1.19, perhaps earlier too (I am less familiar with prior versions.)
@julianwiedmann 👋 Just FYI I've done another version using `skb->cb[]` metadata as you suggested. Not sure it's exactly what you had in mind, but I'm after your thoughts on it....