Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jiridanek opened this issue Mar 21, 2025 · 0 comments

Comments

@jiridanek
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant