Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2798

Test failure - Windows FLE tests failing with oauth2.googleapis.com:443: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.12, 4.0
    • Affects Version/s: None
    • Component/s: Tests
    • None

       [2021/07/06 04:20:33.698] ERROR: test_08_gcp_valid_endpoint (test_encryption.TestCustomEndpoint)
       [2021/07/06 04:20:33.698] ----------------------------------------------------------------------
       [2021/07/06 04:20:33.698] Traceback (most recent call last):
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\pool.py", line 1054, in _configured_socket
       [2021/07/06 04:20:33.698]     sock = ssl_context.wrap_socket(sock, server_hostname=host)
       [2021/07/06 04:20:33.698]   File "C:\python\Python36\Lib\ssl.py", line 407, in wrap_socket
       [2021/07/06 04:20:33.698]     _context=self, _session=session)
       [2021/07/06 04:20:33.698]   File "C:\python\Python36\Lib\ssl.py", line 817, in __init__
       [2021/07/06 04:20:33.698]     self.do_handshake()
       [2021/07/06 04:20:33.698]   File "C:\python\Python36\Lib\ssl.py", line 1077, in do_handshake
       [2021/07/06 04:20:33.698]     self._sslobj.do_handshake()
       [2021/07/06 04:20:33.698]   File "C:\python\Python36\Lib\ssl.py", line 689, in do_handshake
       [2021/07/06 04:20:33.698]     self._sslobj.do_handshake()
       [2021/07/06 04:20:33.698] ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
       [2021/07/06 04:20:33.698] The above exception was the direct cause of the following exception:
       [2021/07/06 04:20:33.698] Traceback (most recent call last):
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\encryption.py", line 77, in _wrap_encryption_errors
       [2021/07/06 04:20:33.698]     yield
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\encryption.py", line 505, in create_data_key
       [2021/07/06 04:20:33.698]     key_alt_names=key_alt_names)
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\venv-encryption\lib\site-packages\pymongocrypt\explicit_encrypter.py", line 135, in create_data_key
       [2021/07/06 04:20:33.698]     key = run_state_machine(ctx, self.callback)
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\venv-encryption\lib\site-packages\pymongocrypt\state_machine.py", line 150, in run_state_machine
       [2021/07/06 04:20:33.698]     callback.kms_request(kms_ctx)
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\encryption.py", line 128, in kms_request
       [2021/07/06 04:20:33.698]     conn = _configured_socket((host, port), opts)
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\pool.py", line 1067, in _configured_socket
       [2021/07/06 04:20:33.698]     _raise_connection_failure(address, exc, "SSL handshake failed: ")
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\pool.py", line 252, in _raise_connection_failure
       [2021/07/06 04:20:33.698]     raise AutoReconnect(msg) from error
       [2021/07/06 04:20:33.698] pymongo.errors.AutoReconnect: SSL handshake failed: oauth2.googleapis.com:443: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
       [2021/07/06 04:20:33.698] During handling of the above exception, another exception occurred:
       [2021/07/06 04:20:33.698] Traceback (most recent call last):
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\test\test_encryption.py", line 1221, in test_08_gcp_valid_endpoint
       [2021/07/06 04:20:33.698]     self.run_test_expected_success('gcp', master_key)
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\test\test_encryption.py", line 1120, in run_test_expected_success
       [2021/07/06 04:20:33.698]     provider_name, master_key=master_key)
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\encryption.py", line 505, in create_data_key
       [2021/07/06 04:20:33.698]     key_alt_names=key_alt_names)
       [2021/07/06 04:20:33.698]   File "C:\python\Python36\Lib\contextlib.py", line 99, in __exit__
       [2021/07/06 04:20:33.698]     self.gen.throw(type, value, traceback)
       [2021/07/06 04:20:33.698]   File "C:\data\mci\394e489828c18933cab63b12ee11ce58\src\pymongo\encryption.py", line 83, in _wrap_encryption_errors
       [2021/07/06 04:20:33.698]     raise EncryptionError(exc)
       [2021/07/06 04:20:33.698] pymongo.errors.EncryptionError: SSL handshake failed: oauth2.googleapis.com:443: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_windows_encryption__platform~windows_64_vsMulti_small_auth_ssl~noauth_nossl_python_version_windows~3.6_encryption~encryption_test_4.2_replica_set_fd845654fbe5391fcd17995349e740ba7cf93cea_21_07_01_03_01_43

      The last green test run was 6/29. This seems to be related to a recent change of the toolchain or the windows distro.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: