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

Test Failure - test_ipv6 (SSL)

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None

      This failure happens on some variants (macOS, Debian, SUSE) when SSL is enabled.

       [2017/01/19 16:20:47.402] ERROR [30.326s]: test_ipv6 (test_client.TestClient)
       [2017/01/19 16:20:47.402] ----------------------------------------------------------------------
       [2017/01/19 16:20:47.403] Traceback (most recent call last):
       [2017/01/19 16:20:47.403]   File "/data/mci/c2b4a77bc7d2832e6efa06eb087b6fbd/src/test/__init__.py", line 324, in wrap
       [2017/01/19 16:20:47.403]     return f(*args, **kwargs)
       [2017/01/19 16:20:47.403]   File "/data/mci/c2b4a77bc7d2832e6efa06eb087b6fbd/src/test/test_client.py", line 751, in test_ipv6
       [2017/01/19 16:20:47.403]     client.pymongo_test.test.insert_one({"dummy": u"object"})
       [2017/01/19 16:20:47.403]   File "/data/mci/c2b4a77bc7d2832e6efa06eb087b6fbd/src/pymongo/collection.py", line 654, in insert_one
       [2017/01/19 16:20:47.403]     with self._socket_for_writes() as sock_info:
       [2017/01/19 16:20:47.403]   File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
       [2017/01/19 16:20:47.403]     return self.gen.next()
       [2017/01/19 16:20:47.403]   File "/data/mci/c2b4a77bc7d2832e6efa06eb087b6fbd/src/pymongo/mongo_client.py", line 823, in _get_socket
       [2017/01/19 16:20:47.403]     server = self._get_topology().select_server(selector)
       [2017/01/19 16:20:47.403]   File "/data/mci/c2b4a77bc7d2832e6efa06eb087b6fbd/src/pymongo/topology.py", line 214, in select_server
       [2017/01/19 16:20:47.403]     address))
       [2017/01/19 16:20:47.403]   File "/data/mci/c2b4a77bc7d2832e6efa06eb087b6fbd/src/pymongo/topology.py", line 189, in select_servers
       [2017/01/19 16:20:47.403]     self._error_message(selector))
       [2017/01/19 16:20:47.403] ServerSelectionTimeoutError: hostname u'::1' doesn't match either of 'localhost', '127.0.0.1'
      
       [2017/01/31 23:12:30.807] ======================================================================
       [2017/01/31 23:12:30.809] FAIL [10.027s]: test_ipv6 (test_replica_set_client.TestReplicaSetClient)
       [2017/01/31 23:12:30.809] ----------------------------------------------------------------------
       [2017/01/31 23:12:30.809] Traceback (most recent call last):
       [2017/01/31 23:12:30.809]   File "/data/mci/e22e7aeb414ca6441b499e0136153850/src/test/__init__.py", line 332, in wrap
       [2017/01/31 23:12:30.809]     return f(*args, **kwargs)
       [2017/01/31 23:12:30.809]   File "/data/mci/e22e7aeb414ca6441b499e0136153850/src/test/test_replica_set_client.py", line 224, in test_ipv6
       [2017/01/31 23:12:30.809]     wait_until(lambda: c.primary == self.primary, msg)
       [2017/01/31 23:12:30.809]   File "/data/mci/e22e7aeb414ca6441b499e0136153850/src/test/utils.py", line 305, in wait_until
       [2017/01/31 23:12:30.809]     raise AssertionError("Didn't ever %s" % success_description)
       [2017/01/31 23:12:30.809] AssertionError: Didn't ever discovered primary with IPv4 address "(u'localhost', 27017)"
      

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

              Created:
              Updated:
              Resolved: