Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
connectivity: add unknown ICMPv4 code as expected drop reason
ICMP destination unreachable packets are dropped with "Unknown ICMPv4 code" reason when Cilium is configured with both KPR and BPF masquerade enabled, except that in the fragmentation needed case. Hence, let's add them to the default list of expected drop reasons, as they can be legitimately generated for instance when connecting to a NodePort if the corresponding backend is not yet ready, as in the clustermesh case: 172.18.0.7:35748 (ID:9) <> kube-system/clustermesh-apiserver:32379 (host) from-network FORWARDED (TCP Flags: SYN) 172.18.0.2 (host) <> 172.18.0.7 (ID:9) Unknown ICMPv4 code DROPPED (ICMPv4 DestinationUnreachable(Port)) Otherwise the no-unexpected-packet-drops test fails with: 🟥 Found unexpected packet drops: { "labels": { "direction": "EGRESS", "reason": "Unknown ICMPv4 code" }, "name": "cilium_drop_count_total", "value": 10 } Signed-off-by: Marco Iorio <[email protected]>
- Loading branch information