Skip to content

[e2e test flake] unexpected error trying to use websockets for pod exec #12579

@alimaazamat

Description

@alimaazamat

Which jobs are flaking?

capi-e2e-mink8s-release-1-10

Which tests are flaking?

Different tests fail but commonly is periodic-cluster-api-e2e-mink8s-release-1-10.Overall
Here is the repeated example error in build log:

I0804 05:14:56.605011 15 exec_util.go:201] unexpected error trying to use websockets for pod exec: <nil>
  I0804 05:14:56.605096 15 utils.go:355] Waiting for responses: map[netserver-0:{}]
  I0804 05:14:58.609058 15 exec_util.go:63] ExecWithOptions {Command:[/bin/sh -c curl -g -q -s 'http://192.168.2.4:9080/dial?request=hostname&protocol=http&host=172.18.0.11&port=30340&tries=1'] Namespace:dualstack-1871 PodName:test-container-pod ContainerName:webserver Stdin: CaptureStdout:true CaptureStderr:true PreserveWhitespace:false Quiet:false}
  I0804 05:14:58.609138 15 exec_util.go:68] ExecWithOptions: Clientset creation
  I0804 05:14:58.609228 15 exec_util.go:84] ExecWithOptions: execute(https://172.18.0.5:6443/api/v1/namespaces/dualstack-1871/pods/test-container-pod/exec?command=%2Fbin%2Fsh&command=-c&command=curl+-g+-q+-s+%27http%3A%2F%2F192.168.2.4%3A9080%2Fdial%3Frequest%3Dhostname%26protocol%3Dhttp%26host%3D172.18.0.11%26port%3D30340%26tries%3D1%27&container=webserver&stderr=true&stdout=true)
  I0804 05:14:58.738590 15 exec_util.go:201] unexpected error trying to use websockets for pod exec: <nil>
  I0804 05:14:58.738702 15 utils.go:355] Waiting for responses: map[]
  I0804 05:14:58.738737 15 utils.go:359] reached 172.18.0.11 after 1/34 tries
  I0804 05:14:58.738884 15 helper.go:125] Waiting up to 7m0s for all (but 0) nodes to be ready
  STEP: Destroying namespace "dualstack-1871" for this suite. @ 08/04/25 05:14:58.742
• [26.775 seconds]

Since when has it been flaking?

08/02/2025 and before that during the IPv6 dualstack conformance test failures

Testgrid link

https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/periodic-cluster-api-e2e-mink8s-release-1-10/1952228381764358144
https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/periodic-cluster-api-e2e-mink8s-release-1-10/1952046934256521216
https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/periodic-cluster-api-e2e-mink8s-release-1-10/1951200849795485696
https://prow.k8s.io/view/gs/kubernetes-ci-logs/logs/periodic-cluster-api-e2e-mink8s-release-1-10/1951684290777452544

Reason for failure (if possible)

No response

Anything else we need to know?

No response

Label(s) to be applied

/kind flake
One or more /area label. See https://github.com/kubernetes-sigs/cluster-api/labels?q=area for the list of labels.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/flakeCategorizes issue or PR as related to a flaky test.needs-priorityIndicates an issue lacks a `priority/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions