cilium-cli icon indicating copy to clipboard operation
cilium-cli copied to clipboard

Connectivity Test hack for k8s exec failures: ping special case regex does not work for IPv6

Open bimmlerd opened this issue 11 months ago • 2 comments

The hack in https://github.com/cilium/cilium-cli/pull/1857 works, somewhat, for IPv4. However, amazingly, ping for IPv6 has a slightly different output format:

$ ping 2606:4700:4700::1111             
PING 2606:4700:4700::1111(2606:4700:4700::1111) 56 data bytes
64 bytes from 2606:4700:4700::1111: icmp_seq=1 ttl=58 time=4.57 ms

vs

david@panther:~/wrk -$ ping 1.1.1.1             
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=58 time=2.84 ms

Note bytes of data vs data bytes :facepalm:

bimmlerd avatar Feb 29 '24 15:02 bimmlerd