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

[3.13] Test failure - test_authenticate_multiple on v6.0-latest

    • Type: Icon: Build Failure Build Failure
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • 3.13
    • Affects Version/s: None
    • Component/s: Tests

      Caused by SERVER-57369:

       [2022/02/24 22:28:35.208] ERROR: test_authenticate_multiple (test_database.TestDatabase)
       [2022/02/24 22:28:35.208] ----------------------------------------------------------------------
       [2022/02/24 22:28:35.208] Traceback (most recent call last):
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/__init__.py", line 524, in wrap
       [2022/02/24 22:28:35.208]     return f(*args, **kwargs)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/__init__.py", line 524, in wrap
       [2022/02/24 22:28:35.208]     return f(*args, **kwargs)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/utils.py", line 794, in wrapper
       [2022/02/24 22:28:35.208]     return wrapped(*args, **kwargs)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/test_database.py", line 734, in test_authenticate_multiple
       [2022/02/24 22:28:35.208]     admin_db.authenticate("ro-admin", "pass")
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/database.py", line 1687, in authenticate
       [2022/02/24 22:28:35.208]     self.client._cache_credentials(self.name, credentials, connect=True)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/mongo_client.py", line 830, in _cache_credentials
       [2022/02/24 22:28:35.208]     sock_info.authenticate(credentials)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/pool.py", line 868, in authenticate
       [2022/02/24 22:28:35.208]     auth.authenticate(credentials, self)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 679, in authenticate
       [2022/02/24 22:28:35.208]     auth_func(credentials, sock_info)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 600, in _authenticate_default
       [2022/02/24 22:28:35.208]     return _authenticate_scram(credentials, sock_info, "SCRAM-SHA-256")
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 331, in _authenticate_scram
       [2022/02/24 22:28:35.208]     res = sock_info.command(source, cmd)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/pool.py", line 753, in command
       [2022/02/24 22:28:35.208]     exhaust_allowed=exhaust_allowed,
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/network.py", line 181, in command
       [2022/02/24 22:28:35.208]     parse_write_concern_error=parse_write_concern_error,
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/helpers.py", line 180, in _check_command_response
       [2022/02/24 22:28:35.208]     raise OperationFailure(errmsg, code, response, max_wire_version)
       [2022/02/24 22:28:35.208] OperationFailure: Each client connection may only be authenticated once. Previously authenticated as: user@pymongo_test, full error: {u'codeName': u'Location5626701', u'code': 5626701, u'ok': 0.0, u'errmsg': u'Each client connection may only be authenticated once. Previously authenticated as: user@pymongo_test'}
       [2022/02/24 22:28:35.208] ======================================================================
       [2022/02/24 22:28:35.208] ERROR: test_session_authenticate_multiple (test_session.TestSessionsMultiAuth)
       [2022/02/24 22:28:35.208] ----------------------------------------------------------------------
       [2022/02/24 22:28:35.208] Traceback (most recent call last):
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/utils.py", line 794, in wrapper
       [2022/02/24 22:28:35.208]     return wrapped(*args, **kwargs)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/test/test_session.py", line 1145, in test_session_authenticate_multiple
       [2022/02/24 22:28:35.208]     db.authenticate("second-user", "pass")
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/database.py", line 1687, in authenticate
       [2022/02/24 22:28:35.208]     self.client._cache_credentials(self.name, credentials, connect=True)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/mongo_client.py", line 830, in _cache_credentials
       [2022/02/24 22:28:35.208]     sock_info.authenticate(credentials)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/pool.py", line 868, in authenticate
       [2022/02/24 22:28:35.208]     auth.authenticate(credentials, self)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 679, in authenticate
       [2022/02/24 22:28:35.208]     auth_func(credentials, sock_info)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 600, in _authenticate_default
       [2022/02/24 22:28:35.208]     return _authenticate_scram(credentials, sock_info, "SCRAM-SHA-256")
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/auth.py", line 331, in _authenticate_scram
       [2022/02/24 22:28:35.208]     res = sock_info.command(source, cmd)
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/pool.py", line 753, in command
       [2022/02/24 22:28:35.208]     exhaust_allowed=exhaust_allowed,
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/network.py", line 181, in command
       [2022/02/24 22:28:35.208]     parse_write_concern_error=parse_write_concern_error,
       [2022/02/24 22:28:35.208]   File "/data/mci/b853324119083f1c585b93582cfc15cb/src/pymongo/helpers.py", line 180, in _check_command_response
       [2022/02/24 22:28:35.208]     raise OperationFailure(errmsg, code, response, max_wire_version)
       [2022/02/24 22:28:35.208] OperationFailure: Each client connection may only be authenticated once. Previously authenticated as: bob@admin, full error: {u'codeName': u'Location5626701', u'code': 5626701, u'ok': 0.0, u'errmsg': u'Each client connection may only be authenticated once. Previously authenticated as: bob@admin'}
      

      https://evergreen.mongodb.com/task/mongo_python_driver_3.13_tests_all__platform~awslinux_auth_ssl~auth_ssl_test_latest_standalone_1443d7687edb9f6f62a182c0d3b5e9386b4a568c_22_02_17_22_23_37

      We'll need to skip these tests on 6.0+

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

              Created:
              Updated:
              Resolved: