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

Test Failure - test_legacy_namedKMS_Automatically_encrypt_and_decrypt_with_a_named_KMS_provider

    • Type: Icon: Build Failure Build Failure
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers

      Synchro named kms tests are failing due to PYTHON-4112:

       [2024/02/20 15:02:37.552] =================================== FAILURES ===================================
       [2024/02/20 15:02:37.552] _ TestSpec.test_legacy_namedKMS_Automatically_encrypt_and_decrypt_with_a_named_KMS_provider _
       [2024/02/20 15:02:37.552] self = <test.test_encryption.TestSpec testMethod=test_legacy_namedKMS_Automatically_encrypt_and_decrypt_with_a_named_KMS_provider>
       [2024/02/20 15:02:37.552]     @client_context.require_test_commands
       [2024/02/20 15:02:37.552]     def run_scenario(self):
       [2024/02/20 15:02:37.552] >       self.run_scenario(scenario_def, test)
       [2024/02/20 15:02:37.552] test/test_encryption.py:703:
       [2024/02/20 15:02:37.552] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
       [2024/02/20 15:02:37.552] test/utils_spec_runner.py:525: in run_scenario
       [2024/02/20 15:02:37.552]     client = rs_client(
       [2024/02/20 15:02:37.552] test/utils.py:594: in rs_client
       [2024/02/20 15:02:37.552]     return _mongo_client(h, p, **kwargs)
       [2024/02/20 15:02:37.552] test/utils.py:574: in _mongo_client
       [2024/02/20 15:02:37.552]     return MongoClient(uri, port, **client_options)
       [2024/02/20 15:02:37.552] ../../../../synchro/__init__.py:376: in __init__
       [2024/02/20 15:02:37.552]     self.delegate = self.__delegate_class__(host, port, *args, **kwargs)
       [2024/02/20 15:02:37.552] ../../../../motor/core.py:163: in __init__
       [2024/02/20 15:02:37.552]     delegate = self.__delegate_class__(*args, **kwargs)
       [2024/02/20 15:02:37.552] pymongo/mongo_client.py:867: in __init__
       [2024/02/20 15:02:37.552]     self._encrypter = _Encrypter(self, self.__options.auto_encryption_opts)
       [2024/02/20 15:02:37.552] pymongo/encryption.py:376: in __init__
       [2024/02/20 15:02:37.552]     self._auto_encrypter = AutoEncrypter(
       [2024/02/20 15:02:37.552] ../../lib/python3.12/site-packages/pymongocrypt/auto_encrypter.py:31: in __init__
       [2024/02/20 15:02:37.552]     self.mongocrypt = MongoCrypt(mongo_crypt_opts, callback)
       [2024/02/20 15:02:37.552] ../../lib/python3.12/site-packages/pymongocrypt/mongocrypt.py:189: in __init__
       [2024/02/20 15:02:37.552]     self.__init()
       [2024/02/20 15:02:37.552] ../../lib/python3.12/site-packages/pymongocrypt/mongocrypt.py:202: in __init
       [2024/02/20 15:02:37.552]     self.__raise_from_status()
       [2024/02/20 15:02:37.552] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
       [2024/02/20 15:02:37.552] self = <pymongocrypt.mongocrypt.MongoCrypt object at 0x7fdc73fe1070>
       [2024/02/20 15:02:37.552]     def __raise_from_status(self):
       [2024/02/20 15:02:37.552]         status = lib.mongocrypt_status_new()
       [2024/02/20 15:02:37.552]         try:
       [2024/02/20 15:02:37.552]             lib.mongocrypt_status(self.__crypt, status)
       [2024/02/20 15:02:37.552]             exc = MongoCryptError.from_status(status)
       [2024/02/20 15:02:37.552]         finally:
       [2024/02/20 15:02:37.552]             lib.mongocrypt_status_destroy(status)
       [2024/02/20 15:02:37.552] >       raise exc
       [2024/02/20 15:02:37.552] E       pymongocrypt.errors.MongoCryptError: unsupported KMS provider: local:name2
      

      https://spruce.mongodb.com/task/motor_main__ssl~nossl_tox_env~synchro_py312_os~rhel84_test_4.2_replica_set_cd6b2bb860b506b0964e2826d778c1967954dd10_24_02_20_22_53_04/logs?execution=0&sortBy=STATUS&sortDir=ASC

            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: