Skip to content
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

Deployment tests are failing with an SSL certificate error #2477

Closed
krassowski opened this issue May 21, 2024 · 0 comments · Fixed by #2481
Closed

Deployment tests are failing with an SSL certificate error #2477

krassowski opened this issue May 21, 2024 · 0 comments · Fixed by #2481
Labels
area: CI/CD 👷🏽‍♀️ area: testing ✅ Testing needs: investigation 🔍 Someone in the team needs to find the root cause and replicate this bug provider: Local

Comments

@krassowski
Copy link
Member

krassowski commented May 21, 2024

The deployments tests are failing:

`SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)`
_____________________ ERROR at setup of test_dask_gateway ______________________
Traceback (most recent call last):
  File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/urllib3/connectionpool.py", line [46](https://github.com/nebari-dev/nebari/actions/runs/9177179471/job/25234168892?pr=2475#step:20:47)7, in _make_request
    self._validate_conn(conn)
  File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1099, in _validate_conn
    conn.connect()
  File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/urllib3/connection.py", line 653, in connect
    sock_and_verified = _ssl_wrap_socket_and_match_hostname(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/urllib3/connection.py", line 806, in _ssl_wrap_socket_and_match_hostname
    ssl_sock = ssl_wrap_socket(
               ^^^^^^^^^^^^^^^^
  File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/urllib3/util/ssl_.py", line 465, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/urllib3/util/ssl_.py", line [50](https://github.com/nebari-dev/nebari/actions/runs/9177179471/job/25234168892?pr=2475#step:20:51)9, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runnerx/miniconda3/envs/test/lib/python3.11/ssl.py", line [51](https://github.com/nebari-dev/nebari/actions/runs/9177179471/job/25234168892?pr=2475#step:20:52)7, in wrap_socket
    return self.sslsocket_class._create(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runnerx/miniconda3/envs/test/lib/python3.11/ssl.py", line 1104, in _create
    self.do_handshake()
  File "/home/runnerx/miniconda3/envs/test/lib/python3.11/ssl.py", line 1382, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)
ERROR tests/tests_deployment/test_dask_gateway.py::test_dask_gateway - requests.exceptions.SSLError: HTTPSConnectionPool(host='github-actions.nebari.dev', port=443): Max retries exceeded with url: /hub/api/users/test-user/tokens (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)')))
ERROR tests/tests_deployment/test_dask_gateway.py::test_dask_gateway_cluster_options - requests.exceptions.SSLError: HTTPSConnectionPool(host='github-actions.nebari.dev', port=443): Max retries exceeded with url: /hub/api/users/test-user/tokens (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)')))
ERROR tests/tests_deployment/test_jupyterhub_ssh.py::test_simple_jupyterhub_ssh - requests.exceptions.SSLError: HTTPSConnectionPool(host='github-actions.nebari.dev', port=443): Max retries exceeded with url: /hub/api/users/test-user/tokens (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)')))
ERROR tests/tests_deployment/test_jupyterhub_ssh.py::test_print_jupyterhub_ssh - requests.exceptions.SSLError: HTTPSConnectionPool(host='github-actions.nebari.dev', port=443): Max retries exceeded with url: /hub/api/users/test-user/tokens (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)')))
ERROR tests/tests_deployment/test_jupyterhub_ssh.py::test_exact_jupyterhub_ssh - requests.exceptions.SSLError: HTTPSConnectionPool(host='github-actions.nebari.dev', port=443): Max retries exceeded with url: /hub/api/users/test-user/tokens (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)')))
ERROR tests/tests_deployment/test_jupyterhub_ssh.py::test_contains_jupyterhub_ssh - requests.exceptions.SSLError: HTTPSConnectionPool(host='github-actions.nebari.dev', port=443): Max retries exceeded with url: /hub/api/users/test-user/tokens (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006)')))

I am also seeing this error in nebari-dev/argo-jupyter-scheduler#10 (comment). Any ideas on what might be the issue?

Originally posted by @krassowski in #2475 (comment)

@krassowski krassowski changed the title Deployment tests are failing with SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1006) Deployment tests are failing with an SSL certificate error May 21, 2024
@viniciusdc viniciusdc added area: testing ✅ Testing area: CI/CD 👷🏽‍♀️ needs: investigation 🔍 Someone in the team needs to find the root cause and replicate this bug provider: Local labels May 22, 2024
@krassowski krassowski linked a pull request May 23, 2024 that will close this issue
10 tasks
@github-project-automation github-project-automation bot moved this from New 🚦 to Done 💪🏾 in 🪴 Nebari Project Management May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: CI/CD 👷🏽‍♀️ area: testing ✅ Testing needs: investigation 🔍 Someone in the team needs to find the root cause and replicate this bug provider: Local
Projects
Development

Successfully merging a pull request may close this issue.

2 participants