Skip to content

Commit 4ea7be8

Browse files
committed
Revert "e2e/network: dump iptables and conntrack flows for debugging"
This reverts commit 3f2deb5.
1 parent f6676a2 commit 4ea7be8

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

test/e2e/framework/network/utils.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -364,27 +364,6 @@ func (config *NetworkingTestConfig) DialFromContainer(ctx context.Context, proto
364364
}
365365
framework.Logf("Dump network information for node %s:\n%s", node.Name, result)
366366
}
367-
// Dump the node iptables rules and conntrack flows for troubleshooting #123760
368-
podList, _ := config.f.ClientSet.CoreV1().Pods("kube-system").List(ctx, metav1.ListOptions{
369-
LabelSelector: "k8s-app=kube-proxy",
370-
})
371-
for _, pod := range podList.Items {
372-
// dump only for the node running test-container-pod
373-
if pod.Status.HostIP == config.TestContainerPod.Status.HostIP {
374-
output, _, _ := e2epod.ExecWithOptions(config.f, e2epod.ExecOptions{
375-
Namespace: "kube-system",
376-
PodName: pod.Name,
377-
ContainerName: "kube-proxy",
378-
Command: []string{"sh", "-c", fmt.Sprintf(`echo "IPTables Dump: " && iptables-save | grep "%s/%s:http" && echo "Conntrack flows: " && conntrack -Ln -p tcp | grep %d`, config.Namespace, config.NodePortService.Name, EndpointHTTPPort)},
379-
Stdin: nil,
380-
CaptureStdout: true,
381-
CaptureStderr: true,
382-
PreserveWhitespace: false,
383-
})
384-
framework.Logf("Dump iptables and connntrack flows\n%s", output)
385-
break
386-
}
387-
}
388367
return returnMsg
389368
}
390369

0 commit comments

Comments
 (0)