Skip to content

kubernetes: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2427) #988

@jiridanek

Description

@jiridanek

This comes during pytest testing from the kubernetes python lib, it's not from our code

https://github.com/opendatahub-io/notebooks/actions/runs/13994560026/job/39186433780?pr=968#step:42:52

tests/containers/workbenches/workbench_image_test.py::TestWorkbenchImage::test_image_run_on_openshift[ghcr.io/opendatahub-io/notebooks/workbench-images:cuda-jupyter-pytorch-ubi9-python-3.11-968_merge_370f55bfe952228590f731d85ca7ad389fe68b7a]
  /home/runner/.cache/pypoetry/virtualenvs/notebooks-OIIyMdoB-py3.12/lib/python3.12/site-packages/_pytest/threadexception.py:82: PytestUnhandledThreadExceptionWarning: Exception in thread Kubernetes port forward proxy: 8888
  
  Traceback (most recent call last):
    File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/threading.py", line 1075, in _bootstrap_inner
      self.run()
    File "/opt/hostedtoolcache/Python/3.12.9/x64/lib/python3.12/threading.py", line 1012, in run
      self._target(*self._args, **self._kwargs)
    File "/home/runner/.cache/pypoetry/virtualenvs/notebooks-OIIyMdoB-py3.12/lib/python3.12/site-packages/kubernetes/stream/ws_client.py", line 426, in _proxy
      sent = self.websocket.sock.send(kubernetes_data)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/opt/hostedtoolcache/Python/3.12.9/x[64](https://github.com/opendatahub-io/notebooks/actions/runs/13994560026/job/39186433780?pr=968#step:42:65)/lib/python3.12/ssl.py", line 1179, in send
      return self._sslobj.write(data)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2427)
  
    warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions