[DRIVERS-932] Resync MONGODB-AWS auth test scripts from the server Created: 04/Mar/20  Updated: 28/Oct/23  Resolved: 13/Apr/20

Status: Closed
Project: Drivers
Component/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Shane Harvey Assignee: Clyde Bazile III (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-46023 aws_e2e_ec2.js should ignore RequestL... Closed

 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


Generated at Thu Feb 08 08:22:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.