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

CSFLE test failure on Windows: Error in KMS response. HTTP status=400

    • Type: Icon: Build Failure Build Failure
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Encryption, Tests
    • None

      Encryption tests are failing on Windows:

       [2022/07/28 03:28:39.790] ERROR: test_legacy_awsTemporary_Insert_a_document_with_auto_encryption_using_the_AWS_provider_with_temporary_credentials (test.test_encryption.TestSpec)
       [2022/07/28 03:28:39.790] ----------------------------------------------------------------------
       [2022/07/28 03:28:39.790] Traceback (most recent call last):
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\encryption.py", line 76, in _wrap_encryption_errors
       [2022/07/28 03:28:39.790]     yield
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\encryption.py", line 364, in encrypt
       [2022/07/28 03:28:39.790]     encrypted_cmd = self._auto_encrypter.encrypt(database, encoded_cmd)
       [2022/07/28 03:28:39.790]   File "Z:\data\mci\fa4f77a252c9c119163907a737706191\src\venv-encryption\lib\site-packages\pymongocrypt\auto_encrypter.py", line 44, in encrypt
       [2022/07/28 03:28:39.790]     return run_state_machine(ctx, self.callback)
       [2022/07/28 03:28:39.790]   File "Z:\data\mci\fa4f77a252c9c119163907a737706191\src\venv-encryption\lib\site-packages\pymongocrypt\state_machine.py", line 150, in run_state_machine
       [2022/07/28 03:28:39.790]     callback.kms_request(kms_ctx)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\encryption.py", line 145, in kms_request
       [2022/07/28 03:28:39.790]     kms_context.feed(data)
       [2022/07/28 03:28:39.790]   File "Z:\data\mci\fa4f77a252c9c119163907a737706191\src\venv-encryption\lib\site-packages\pymongocrypt\mongocrypt.py", line 707, in feed
       [2022/07/28 03:28:39.790]     self.__raise_from_status()
       [2022/07/28 03:28:39.790]   File "Z:\data\mci\fa4f77a252c9c119163907a737706191\src\venv-encryption\lib\site-packages\pymongocrypt\mongocrypt.py", line 716, in __raise_from_status
       [2022/07/28 03:28:39.790]     raise exc
       [2022/07/28 03:28:39.790] pymongocrypt.errors.MongoCryptError: Error in KMS response. HTTP status=400
       [2022/07/28 03:28:39.790] During handling of the above exception, another exception occurred:
       [2022/07/28 03:28:39.790] Traceback (most recent call last):
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\test\__init__.py", line 596, in wrap
       [2022/07/28 03:28:39.790]     return f(*args, **kwargs)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\test\__init__.py", line 596, in wrap
       [2022/07/28 03:28:39.790]     return f(*args, **kwargs)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\test\test_encryption.py", line 664, in run_scenario
       [2022/07/28 03:28:39.790]     self.run_scenario(scenario_def, test)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\test\utils_spec_runner.py", line 554, in run_scenario
       [2022/07/28 03:28:39.790]     self.run_test_ops(sessions, collection, test)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\test\utils_spec_runner.py", line 455, in run_test_ops
       [2022/07/28 03:28:39.790]     self.run_operations(sessions, collection, test["operations"])
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\test\utils_spec_runner.py", line 370, in run_operations
       [2022/07/28 03:28:39.790]     self._run_op(sessions, collection, op, in_with_transaction)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\test\utils_spec_runner.py", line 361, in _run_op
       [2022/07/28 03:28:39.790]     result = self.run_operation(sessions, collection, op.copy())
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\test\utils_spec_runner.py", line 310, in run_operation
       [2022/07/28 03:28:39.790]     result = cmd(**dict(arguments))
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\collection.py", line 621, in insert_one
       [2022/07/28 03:28:39.790]     self._insert_one(
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\collection.py", line 562, in _insert_one
       [2022/07/28 03:28:39.790]     self.__database.client._retryable_write(acknowledged, _insert_command, session)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\mongo_client.py", line 1448, in _retryable_write
       [2022/07/28 03:28:39.790]     return self._retry_with_session(retryable, func, s, None)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\mongo_client.py", line 1321, in _retry_with_session
       [2022/07/28 03:28:39.790]     return self._retry_internal(retryable, func, session, bulk)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\_csot.py", line 105, in csot_wrapper
       [2022/07/28 03:28:39.790]     return func(self, *args, **kwargs)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\mongo_client.py", line 1362, in _retry_internal
       [2022/07/28 03:28:39.790]     return func(session, sock_info, retryable)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\collection.py", line 550, in _insert_command
       [2022/07/28 03:28:39.790]     result = sock_info.command(
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\pool.py", line 794, in command
       [2022/07/28 03:28:39.790]     self._raise_connection_failure(error)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\pool.py", line 766, in command
       [2022/07/28 03:28:39.790]     return command(
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\network.py", line 117, in command
       [2022/07/28 03:28:39.790]     spec = orig = client._encrypter.encrypt(dbname, spec, codec_options)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\encryption.py", line 363, in encrypt
       [2022/07/28 03:28:39.790]     with _wrap_encryption_errors():
       [2022/07/28 03:28:39.790]   File "C:\python\Python310\lib\contextlib.py", line 153, in __exit__
       [2022/07/28 03:28:39.790]     self.gen.throw(typ, value, traceback)
       [2022/07/28 03:28:39.790]   File "C:\data\mci\fa4f77a252c9c119163907a737706191\src\pymongo\encryption.py", line 82, in _wrap_encryption_errors
       [2022/07/28 03:28:39.790]     raise EncryptionError(exc)
       [2022/07/28 03:28:39.790] pymongo.errors.EncryptionError: Error in KMS response. HTTP status=400
      

      The failure started on 2022/07/28 with this libmongocrypt version:

       [2022/07/28 03:27:14.136] libmongocrypt version: 1.6.0-dev+20220727gitba30e679ba
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_windows_encryption__platform~windows_64_vsMulti_small_auth_ssl~auth_ssl_python_version_windows~3.10_encryption~encryption_crypt_shared_test_rapid_standalone_14002a5a0d294cae8c2c5349e1a92364381dfd4d_22_07_27_23_53_52

            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: