skip ipv6 ping pod from pod for rhel 7
@@ -622,6 +622,13 @@ function ping_pod_from_pod() {
echo "$output"
[ "$status" -eq 0 ]
+ # since RHEL kernels don't mirror ipv4.ip_forward sysctl to ipv6, this fails
+ # in such an environment without giving all containers NET_RAW capability
+ # rather than reducing the security of the tests for all cases, skip this check
+ # instead
+ if (grep -i 'Red Hat\|CentOS' /etc/redhat-release | grep " 7"); then
+ return
+ fi
ipv6=$(parse_pod_ipv6 "$1")
run crictl exec --sync "$2" ping6 -W 1 -c 2 "$ipv6"
echo "$output"
