mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #98551 from aojea/ipv6conn
deflake ipv6 tcp close_wait
This commit is contained in:
commit
2f4778ca86
@ -212,7 +212,7 @@ var _ = SIGDescribe("KubeProxy", func() {
|
|||||||
cmd := fmt.Sprintf("conntrack -L -f %s -d %v "+
|
cmd := fmt.Sprintf("conntrack -L -f %s -d %v "+
|
||||||
"| grep -m 1 'CLOSE_WAIT.*dport=%v' ",
|
"| grep -m 1 'CLOSE_WAIT.*dport=%v' ",
|
||||||
ipFamily, ip, testDaemonTCPPort)
|
ipFamily, ip, testDaemonTCPPort)
|
||||||
if err := wait.PollImmediate(1*time.Second, postFinTimeoutSeconds, func() (bool, error) {
|
if err := wait.PollImmediate(2*time.Second, epsilonSeconds, func() (bool, error) {
|
||||||
result, err := framework.RunHostCmd(fr.Namespace.Name, "e2e-net-exec", cmd)
|
result, err := framework.RunHostCmd(fr.Namespace.Name, "e2e-net-exec", cmd)
|
||||||
// retry if we can't obtain the conntrack entry
|
// retry if we can't obtain the conntrack entry
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -234,6 +234,12 @@ var _ = SIGDescribe("KubeProxy", func() {
|
|||||||
}
|
}
|
||||||
return false, fmt.Errorf("wrong TCP CLOSE_WAIT timeout: %v expected: %v", timeoutSeconds, expectedTimeoutSeconds)
|
return false, fmt.Errorf("wrong TCP CLOSE_WAIT timeout: %v expected: %v", timeoutSeconds, expectedTimeoutSeconds)
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
|
// Dump all conntrack entries for debugging
|
||||||
|
result, err := framework.RunHostCmd(fr.Namespace.Name, "e2e-net-exec", "conntrack -L")
|
||||||
|
if err != nil {
|
||||||
|
framework.Logf("failed to obtain conntrack entry: %v %v", result, err)
|
||||||
|
}
|
||||||
|
framework.Logf("conntrack entries for node %v: %v", serverNodeInfo.nodeIP, result)
|
||||||
framework.Failf("no valid conntrack entry for port %d on node %s: %v", testDaemonTCPPort, serverNodeInfo.nodeIP, err)
|
framework.Failf("no valid conntrack entry for port %d on node %s: %v", testDaemonTCPPort, serverNodeInfo.nodeIP, err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user