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

Test failures - test_validation_with_system_ca_certs fails on macOS-1014 EVG platform

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Sample failure: https://evergreen.mongodb.com/version/mongo_python_driver_6c27e3e9d79f544db032f71a7c0c74d8b8ae2891

      ======================================================================
      ERROR: test_validation_with_system_ca_certs (test_ssl.TestSSL)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/data/mci/0da74ecabedce25bd65f8f867922d4db/src/test/__init__.py", line 433, in wrap
          return f(*args, **kwargs)
        File "/data/mci/0da74ecabedce25bd65f8f867922d4db/src/test/__init__.py", line 433, in wrap
          return f(*args, **kwargs)
        File "/data/mci/0da74ecabedce25bd65f8f867922d4db/src/test/test_ssl.py", line 446, in test_validation_with_system_ca_certs
          **self.credentials))
        File "/data/mci/0da74ecabedce25bd65f8f867922d4db/src/test/utils.py", line 630, in connected
          client.admin.command('ismaster')  # Force connection.
        File "/data/mci/0da74ecabedce25bd65f8f867922d4db/src/pymongo/database.py", line 730, in command
          read_preference, session) as (sock_info, slave_ok):
        File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
          return self.gen.next()
        File "/data/mci/0da74ecabedce25bd65f8f867922d4db/src/pymongo/mongo_client.py", line 1298, in _socket_for_reads
          server = self._select_server(read_preference, session)
        File "/data/mci/0da74ecabedce25bd65f8f867922d4db/src/pymongo/mongo_client.py", line 1253, in _select_server
          server = topology.select_server(server_selector)
        File "/data/mci/0da74ecabedce25bd65f8f867922d4db/src/pymongo/topology.py", line 235, in select_server
          address))
        File "/data/mci/0da74ecabedce25bd65f8f867922d4db/src/pymongo/topology.py", line 193, in select_servers
          selector, server_timeout, address)
        File "/data/mci/0da74ecabedce25bd65f8f867922d4db/src/pymongo/topology.py", line 209, in _select_servers_loop
          self._error_message(selector))
      ServerSelectionTimeoutError: SSL handshake failed: server:27017: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
      ----------------------------------------------------------------------
      

      Note that the test passes after a few retries suggesting the existence of a race condition.

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: