Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-932

Resync MONGODB-AWS auth test scripts from the server

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      SERVER-46023 works around RequestLimitExceeded errors in the EC2 MONGODB-AWS auth test. We should resync the aws_e2e_ec2.js and aws_assign_instance_profile.py scripts.

      Here's an example failure in the python driver:

       [2020/03/04 15:15:20.561] sh2416| Traceback (most recent call last):
       [2020/03/04 15:15:20.561] sh2416|   File "lib/aws_assign_instance_profile.py", line 79, in <module>
       [2020/03/04 15:15:20.561] sh2416|     main()
       [2020/03/04 15:15:20.561] sh2416|   File "lib/aws_assign_instance_profile.py", line 75, in main
       [2020/03/04 15:15:20.561] sh2416|     _assign_instance_policy(args.instance_profile_arn)
       [2020/03/04 15:15:20.561] sh2416|   File "lib/aws_assign_instance_profile.py", line 47, in _assign_instance_policy
       [2020/03/04 15:15:20.561] sh2416|     response = ec2_client.associate_iam_instance_profile(
       [2020/03/04 15:15:20.561] sh2416|   File "C:\data\mci\4d6fa9f599306fd907361b8bffbab2ae\src\mongovenv\lib\site-packages\botocore\client.py", line 316, in _api_call
       [2020/03/04 15:15:20.568] sh2416|     return self._make_api_call(operation_name, kwargs)
       [2020/03/04 15:15:20.568] sh2416|   File "C:\data\mci\4d6fa9f599306fd907361b8bffbab2ae\src\mongovenv\lib\site-packages\botocore\client.py", line 626, in _make_api_call
       [2020/03/04 15:15:20.569] sh2416|     raise error_class(parsed_response, operation_name)
       [2020/03/04 15:15:20.569] sh2416| botocore.exceptions.ClientError: An error occurred (RequestLimitExceeded) when calling the AssociateIamInstanceProfile operation (reached max retries: 4): Request limit exceeded.
       [2020/03/04 15:15:20.607] uncaught exception: Error: [1] != [0] are not equal : Failed to assign an instance profile to the current machine :
       [2020/03/04 15:15:20.607] doassert@src/mongo/shell/assert.js:20:14
       [2020/03/04 15:15:20.607] assert.eq@src/mongo/shell/assert.js:179:9
       [2020/03/04 15:15:20.607] assignInstanceProfile@aws_e2e_ec2.js:25:5
       [2020/03/04 15:15:20.607] @aws_e2e_ec2.js:28:1
       [2020/03/04 15:15:20.607] @aws_e2e_ec2.js:6:2
       [2020/03/04 15:15:20.628] failed to load: aws_e2e_ec2.js
      

      Attachments

        Activity

          People

            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: