@@ -46,7 +46,6 @@ import (
46
46
e2epodoutput "k8s.io/kubernetes/test/e2e/framework/pod/output"
47
47
e2eskipper "k8s.io/kubernetes/test/e2e/framework/skipper"
48
48
e2essh "k8s.io/kubernetes/test/e2e/framework/ssh"
49
- storageutils "k8s.io/kubernetes/test/e2e/storage/utils"
50
49
imageutils "k8s.io/kubernetes/test/utils/image"
51
50
netutils "k8s.io/utils/net"
52
51
)
@@ -350,20 +349,7 @@ func (config *NetworkingTestConfig) DialFromContainer(ctx context.Context, proto
350
349
}
351
350
if responses .Difference (expectedResponses ).Len () > 0 {
352
351
returnMsg := fmt .Errorf ("received unexpected responses... \n Attempt %d\n Command %v\n retrieved %v\n expected %v" , i , cmd , responses , expectedResponses )
353
- // TODO(aojea) Remove once issues.k8s.io/123760 is solved
354
- // Dump the nodes network routes and addresses for troubleshooting #123760
355
352
framework .Logf ("encountered error during dial (%v)" , returnMsg )
356
- hostExec := storageutils .NewHostExec (config .f )
357
- ginkgo .DeferCleanup (hostExec .Cleanup )
358
- cmd := `echo "IP routes: " && ip route && echo "IP addresses:" && ip addr && echo "Open sockets: " && ss -anp --socket=tcp`
359
- for _ , node := range config .Nodes {
360
- result , err := hostExec .IssueCommandWithResult (ctx , cmd , & node )
361
- if err != nil {
362
- framework .Logf ("error occurred while executing command %s on node: %v" , cmd , err )
363
- continue
364
- }
365
- framework .Logf ("Dump network information for node %s:\n %s" , node .Name , result )
366
- }
367
353
return returnMsg
368
354
}
369
355
0 commit comments