kubernetes: [Flaking Test] gce-ubuntu-master-containerd (connection reset by peer)

Which jobs are flaking?

master-blocking:

Which tests are flaking?

Kubernetes e2e suite.[It] [sig-cli] Kubectl client Simple pod should return command exit codes should handle in-cluster config

Since when has it been flaking?

This test has been failing intermittently since May 18th, with failures occurring every 1-2 days. Check Triage

Testgrid link

https://testgrid.k8s.io/sig-release-master-blocking#gce-ubuntu-master-containerd

Reason for failure (if possible)

[FAILED] in [It] - k8s.io/kubernetes/test/e2e/framework/kubectl/builder.go:91

error: error reading from error stream: next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer
error:
      exit status 1
      {
          Err: <*errors.errorString | 0xc0046ce9b0>{
              s: "error running /workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://34.83.180.141/ --kubeconfig=/workspace/.kube/config --namespace=kubectl-6332 cp /workspace/kubernetes/platforms/linux/amd64/kubectl kubectl-6332/httpd:/tmp/:\nCommand stdout:\n\nstderr:\nE0529 21:32:09.334805   17304 v2.go:167] \"Unhandled Error\" err=\"next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\"\nE0529 21:32:09.334808   17304 v2.go:129] \"Unhandled Error\" err=\"next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\"\nE0529 21:32:09.334853   17304 v2.go:150] \"Unhandled Error\" err=\"next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\"\nerror: error reading from error stream: next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\n\nerror:\nexit status 1",
  E0529 21:32:09.334805   17304 v2.go:167] "Unhandled Error" err="next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer"
  E0529 21:32:09.334808   17304 v2.go:129] "Unhandled Error" err="next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer"
  E0529 21:32:09.334853   17304 v2.go:150] "Unhandled Error" err="next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer"
      error: error reading from error stream: next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer
      
      error:
      exit status 1
      {
          Err: <*errors.errorString | 0xc0046ce9b0>{
              s: "error running /workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://34.83.180.141 --kubeconfig=/workspace/.kube/config --namespace=kubectl-6332 cp /workspace/kubernetes/platforms/linux/amd64/kubectl kubectl-6332/httpd:/tmp/:\nCommand stdout:\n\nstderr:\nE0529 21:32:09.334805   17304 v2.go:167] \"Unhandled Error\" err=\"next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\"\nE0529 21:32:09.334808   17304 v2.go:129] \"Unhandled Error\" err=\"next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\"\nE0529 21:32:09.334853   17304 v2.go:150] \"Unhandled Error\" err=\"next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\"\nerror: error reading from error stream: next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\n\nerror:\nexit status 1",
          },
          Code: 1,
      }

Anything else we need to know?

N/A

Relevant SIG(s)

/sig cli @kubernetes/release-team-release-signal

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (24 by maintainers)

Most upvoted comments

Failures https://prow.k8s.io/view/gs/kubernetes-jenkins/logs/ci-kubernetes-e2e-ubuntu-gce-containerd/1795925976450863104

error

I0529 21:32:03.564574 9867 kubectl.go:593] copying /workspace/kubernetes/platforms/linux/amd64/kubectl to the httpd pod
I0529 21:32:03.564635 9867 builder.go:121] Running '/workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://34.83.180.141 --kubeconfig=/workspace/.kube/config --namespace=kubectl-6332 cp /workspace/kubernetes/platforms/linux/amd64/kubectl kubectl-6332/httpd:/tmp/'
I0529 21:32:09.340487 9867 builder.go:135] rc: 1
I0529 21:32:09.340623 9867 builder.go:91] Unexpected error: 
    <exec.CodeExitError>: 
    error running /workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://34.83.180.141 --kubeconfig=/workspace/.kube/config --namespace=kubectl-6332 cp /workspace/kubernetes/platforms/linux/amd64/kubectl kubectl-6332/httpd:/tmp/:
    Command stdout:
    
    stderr:
    E0529 21:32:09.334805   17304 v2.go:167] "Unhandled Error" err="next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer"
    E0529 21:32:09.334808   17304 v2.go:129] "Unhandled Error" err="next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer"
    E0529 21:32:09.334853   17304 v2.go:150] "Unhandled Error" err="next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer"
    error: error reading from error stream: next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer
    
    error:
    exit status 1
    {
        Err: <*errors.errorString | 0xc0046ce9b0>{
            s: "error running /workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://34.83.180.141 --kubeconfig=/workspace/.kube/config --namespace=kubectl-6332 cp /workspace/kubernetes/platforms/linux/amd64/kubectl kubectl-6332/httpd:/tmp/:\nCommand stdout:\n\nstderr:\nE0529 21:32:09.334805   17304 v2.go:167] \"Unhandled Error\" err=\"next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\"\nE0529 21:32:09.334808   17304 v2.go:129] \"Unhandled Error\" err=\"next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\"\nE0529 21:32:09.334853   17304 v2.go:150] \"Unhandled Error\" err=\"next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\"\nerror: error reading from error stream: next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer\n\nerror:\nexit status 1",
        },
        Code: 1,
    }
[FAILED] error running /workspace/kubernetes/platforms/linux/amd64/kubectl --server=https://34.83.180.141 --kubeconfig=/workspace/.kube/config --namespace=kubectl-6332 cp /workspace/kubernetes/platforms/linux/amd64/kubectl kubectl-6332/httpd:/tmp/:
Command stdout:

stderr:
E0529 21:32:09.334805   17304 v2.go:167] "Unhandled Error" err="next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer"
E0529 21:32:09.334808   17304 v2.go:129] "Unhandled Error" err="next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer"
E0529 21:32:09.334853   17304 v2.go:150] "Unhandled Error" err="next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer"
error: error reading from error stream: next reader: read tcp 10.34.160.50:50460->34.83.180.141:443: read: connection reset by peer

error:
exit status 1

kube-apiserver logs confirms the problem but seems to happen on the worker node https://gcsweb.k8s.io/gcs/kubernetes-jenkins/logs/ci-kubernetes-e2e-ubuntu-gce-containerd/1795925976450863104/artifacts/bootstrap-e2e-master/

E0529 21:32:09.315375 10 conn.go:339] Error on socket receive: read tcp 10.40.0.2:443->34.121.237.185:50460: use of closed network connection I0529 21:32:09.317154 10 httplog.go:132] “HTTP” verb=“CONNECT” URI=“/api/v1/namespaces/kubectl-6332/pods/httpd/exec?command=tar&command=-xmf&command=-&command=-C&command=%2Ftmp&container=httpd&stderr=true&stdin=true&stdout=true” latency=“5.045622494s” userAgent=“kubectl/v1.31.0 (linux/amd64) kubernetes/e821e4f” audit-ID=“030c7a1d-0602-402b-932f-397799adf61f” srcIP=“34.121.237.185:50460” hijacked=trueI0529 21:32:09.317791 10 conn.go:134] closing connection dialID 6172859311107220987 connectionID 742

the job logs indicate that the pod probes also fails

STEP: Found 6 events. - k8s.io/kubernetes/test/e2e/framework/debug/dump.go:46 @ 05/29/24 21:32:10.323
I0529 21:32:10.323658 9867 dump.go:53] At 2024-05-29 21:31:49 +0000 UTC - event for httpd: {default-scheduler } Scheduled: Successfully assigned kubectl-6332/httpd to bootstrap-e2e-minion-group-3h2k
I0529 21:32:10.323693 9867 dump.go:53] At 2024-05-29 21:31:52 +0000 UTC - event for httpd: {kubelet bootstrap-e2e-minion-group-3h2k} Pulled: Container image "registry.k8s.io/e2e-test-images/httpd:2.4.38-4" already present on machine
I0529 21:32:10.323701 9867 dump.go:53] At 2024-05-29 21:31:52 +0000 UTC - event for httpd: {kubelet bootstrap-e2e-minion-group-3h2k} Created: Created container httpd
I0529 21:32:10.323709 9867 dump.go:53] At 2024-05-29 21:31:54 +0000 UTC - event for httpd: {kubelet bootstrap-e2e-minion-group-3h2k} Started: Started container httpd
I0529 21:32:10.323716 9867 dump.go:53] At 2024-05-29 21:32:09 +0000 UTC - event for httpd: {kubelet bootstrap-e2e-minion-group-3h2k} Killing: Stopping container httpd
I0529 21:32:10.323722 9867 dump.go:53] At 2024-05-29 21:32:09 +0000 UTC - event for httpd: {kubelet bootstrap-e2e-minion-group-3h2k} Unhealthy: Readiness probe failed: Get "http://10.64.4.226:80/": dial tcp 10.64.4.226:80: connect: connection refused

kubelet logs also show the problem seems to be within the node

httplog.go:132] "HTTP" verb="POST" URI="/exec/nettest-1794/test-container-pod/webserver?command=%2Fbin%2Fsh&command=-c&command=curl+-g+-q+-s+%27http%3A%2F%2F10.64.4.146%3A8083%2Fdial%3Frequest%3Dhostname%26protocol%3Dhttp%26host%3D10.0.192.209%26port%3D80%26tries%3D1%27&error=1&output=1" latency="432.25506ms" userAgent="e2e.test/v1.31.0 (linux/amd64) kubernetes/e821e4f -- [sig-network] Networking Granular Checks: Services should function for multiple endpoint-Services with same selector" audit-ID="" srcIP="10.64.4.3:44658" hijacked=true
May 29 21:32:09.715792 bootstrap-e2e-minion-group-3h2k kubelet[8827]: I0529 21:32:09.714632    8827 prober.go:155] "HTTP-Probe" scheme="http" host="10.64.4.226" port="80" path="/" timeout="5s" headers=null
May 29 21:32:09.715792 bootstrap-e2e-minion-group-3h2k kubelet[8827]: I0529 21:32:09.715160    8827 prober.go:107] "Probe failed" probeType="Readiness" pod="kubectl-6332/httpd" podUID="7d35af69-1f80-438b-9ce6-a657e3fc9769" containerName="httpd" probeResult="failure" output="Get \"http://10.64.4.226:80/\": dial tcp 10.64.4.226:80: connect: connection refused"
May 29 21:32:09.715792 bootstrap-e2e-minion-group-3h2k kubelet[8827]: I0529 21:32:09.715496    8827 event.go:389] "Event occurred" object="kubectl-6332/httpd" fieldPath="spec.containers{httpd}" kind="Pod" apiVersion="v1" type="Warning" reason="Unhealthy" message="Readiness probe failed: Get \"http://10.64.4.226:80/\": dial tcp 10.64.4.226:80: connect: connection refused"

can’t say what happened but everything points the node at that time has some problems

image

let’s reopen if needed.

/close

i don’t think kube-up uses the GCP CCM, it’s just some bash that provisions GCE nodes.

@neolit123 it does https://storage.googleapis.com/kubernetes-jenkins/logs/ci-kubernetes-e2e-ubuntu-gce-containerd/1795925976450863104/artifacts/bootstrap-e2e-master/cloud-controller-manager.log , kube-up.sh were moved to external ccm with the deprecation

i don’t think kube-up uses the GCP CCM, it’s just some bash that provisions GCE nodes. looks like folks on this thread are already debugging, but f you know someone from GCP, please cc them.

also FTR, there is an effort to replace kube-up jobs with kOps jobs: https://github.com/kubernetes/enhancements/issues/4224