Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-1143

[Failure] test_async_create_encrypted_collection

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.2
    • Affects Version/s: None
    • Component/s: None
    • None

      We need to update asyncio_tests.test_asyncio_collection.TestAsyncIOCollection.test_async_create_encrypted_collection and tornado_tests.test_motor_collection.MotorCollectionTest.test_async_create_encrypted_collection to handle QEv2.

      https://spruce.mongodb.com/task/motor_main__ssl~ssl_tox_env~py3_pymongo_latest_os~rhel84_test_rapid_sharded_cluster_patch_2c0570f701c7bfb04e3b158aff7f0136ac75b61c_64934ae07742aedd1012a9c0_23_06_21_19_11_01/tests?execution=0&sortBy=STATUS&sortDir=ASC

      [2023/06/21 19:20:47.731] ERROR: Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption. Got maxWireVersion 20 but need maxWireVersion >= 21 (MongoDB >=7.0) (EncryptedCollectionError)
      [2023/06/21 19:20:47.731] Traceback (most recent call last):
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/encryption.py", line 642, in create_encrypted_collection
      [2023/06/21 19:20:47.731]     database.create_collection(name=name, **kwargs),
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/_csot.py", line 106, in csot_wrapper
      [2023/06/21 19:20:47.731]     return func(self, *args, **kwargs)
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/database.py", line 464, in create_collection
      [2023/06/21 19:20:47.731]     return Collection(
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/collection.py", line 236, in __init__
      [2023/06/21 19:20:47.731]     self.__create(
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/collection.py", line 324, in __create
      [2023/06/21 19:20:47.731]     raise ConfigurationError(
      [2023/06/21 19:20:47.731] pymongo.errors.ConfigurationError: Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption. Got maxWireVersion 20 but need maxWireVersion >= 21 (MongoDB >=7.0)
      [2023/06/21 19:20:47.731] The above exception was the direct cause of the following exception:
      [2023/06/21 19:20:47.731] Traceback (most recent call last):
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/test/asyncio_tests/__init__.py", line 49, in __call__
      [2023/06/21 19:20:47.731]     result = self.orig_method()
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/test/test_environment.py", line 305, in wrap
      [2023/06/21 19:20:47.731]     return f(*args, **kwargs)
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/test/test_environment.py", line 305, in wrap
      [2023/06/21 19:20:47.731]     return f(*args, **kwargs)
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/test/asyncio_tests/__init__.py", line 211, in wrapped
      [2023/06/21 19:20:47.731]     self.loop.run_until_complete(task)
      [2023/06/21 19:20:47.731]   File "/opt/python/3.9/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
      [2023/06/21 19:20:47.731]     return future.result()
      [2023/06/21 19:20:47.731]   File "/opt/python/3.9/lib/python3.9/asyncio/tasks.py", line 479, in wait_for
      [2023/06/21 19:20:47.731]     return fut.result()
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/test/asyncio_tests/test_asyncio_collection.py", line 281, in test_async_create_encrypted_collection
      [2023/06/21 19:20:47.731]     coll, ef = await client_encryption.create_encrypted_collection(
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/motor/core.py", line 2109, in create_encrypted_collection
      [2023/06/21 19:20:47.731]     coll, ef = await self._framework.run_on_executor(
      [2023/06/21 19:20:47.731]   File "/opt/python/3.9/lib/python3.9/concurrent/futures/thread.py", line 58, in run
      [2023/06/21 19:20:47.731]     result = self.fn(*self.args, **self.kwargs)
      [2023/06/21 19:20:47.731]   File "/data/mci/067f0d8875da3a80cfb7b10a6bf36eb9/src/.tox/asyncio-py39/lib/python3.9/site-packages/pymongo/encryption.py", line 646, in create_encrypted_collection
      [2023/06/21 19:20:47.731]     raise EncryptedCollectionError(exc, encrypted_fields) from exc
      [2023/06/21 19:20:47.731] pymongo.errors.EncryptedCollectionError: Driver support of Queryable Encryption is incompatible with server. Upgrade server to use Queryable Encryption. Got maxWireVersion 20 but need maxWireVersion >= 21 (MongoDB >=7.0)
      

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: