[DRIVERS-1462] Test Failure - MONGODB-AWS Auth Ubuntu 18.04 Created: 01/Dec/20  Updated: 28/Oct/23  Resolved: 29/Jan/21

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

Type: Bug Priority: Major - P3
Reporter: Shane Harvey Assignee: Eric Adum (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on GODRIVER-1882 Test Failure - MONGODB-AWS Auth Ubunt... Closed
depends on NODE-3056 Test Failure - MONGODB-AWS Auth Ubunt... Closed
depends on PYTHON-2445 Test Failure - MONGODB-AWS Auth Ubunt... Closed
is depended on by JAVA-3906 Re enable AWS tests Closed
Related
related to CDRIVER-4150 AWS ECS tasks failing setup Closed
Driver Changes: Not Needed
Quarter: FY22Q1
Driver Compliance:
Key Status/Resolution FixVersion
NODE-3056 Done
PYTHON-2445 Fixed 3.12, 3.11.3, 4.0
GODRIVER-1882 Fixed 1.4.7

 Description   

This test is failing on MongoDB 4.4 (and latest) since Nov 20th:

 [2020/11/27 18:42:42.211] Running command 'shell.exec' in "run aws ECS auth test" (step 8 of 8)
 [2020/11/27 18:42:42.274] MongoDB shell version v4.9.0-alpha-711-g79be0f2
 [2020/11/27 18:42:42.274] loading file: setup.js
 [2020/11/27 18:42:42.274] loading file: aws_e2e_ecs.js
 [2020/11/27 18:42:42.275] {"t":{"$date":"2020-11-27T18:42:42.275Z"},"s":"I",  "c":"-",        "id":22810,   "ctx":"js","msg":"shell: Started program","attr":{"pid":"5605","argv":["/bin/sh","-c","python3 -u  lib/container_tester.py -v remote_gc_services  --cluster arn:aws:ecs:us-east-1:557821124784:cluster/authtest-cluster"]}}
 [2020/11/27 18:42:42.631] sh5605| AWS_SHARED_CREDENTIALS_FILE: None
 [2020/11/27 18:42:42.631] sh5605| INFO:botocore.credentials:Found credentials in environment variables.
 [2020/11/27 18:42:43.054] sh5605| INFO:botocore.vendored.requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): ecs.us-east-1.amazonaws.com
 [2020/11/27 18:42:43.167] sh5605| DELETING expired service mdb-ruby_test_b68db8e0-5589-4fea-991d-c9bc30200a3e which was created at 2020-11-27 07:04:05.260000+00:00.
 [2020/11/27 18:42:43.173] sh5605| Traceback (most recent call last):
 [2020/11/27 18:42:43.174] sh5605|   File "lib/container_tester.py", line 385, in <module>
 [2020/11/27 18:42:43.174] sh5605|     main()
 [2020/11/27 18:42:43.174] sh5605|   File "lib/container_tester.py", line 381, in main
 [2020/11/27 18:42:43.174] sh5605|     args.func(args)
 [2020/11/27 18:42:43.174] sh5605|   File "lib/container_tester.py", line 204, in _remote_gc_services_container_args
 [2020/11/27 18:42:43.174] sh5605|     remote_gc_services_container(args.cluster)
 [2020/11/27 18:42:43.174] sh5605|   File "lib/container_tester.py", line 227, in remote_gc_services_container
 [2020/11/27 18:42:43.174] sh5605|     remote_stop_container(cluster, service["serviceName"])
 [2020/11/27 18:42:43.174] sh5605|   File "lib/container_tester.py", line 193, in remote_stop_container
 [2020/11/27 18:42:43.174] sh5605|     resp = ecs_client.delete_service(cluster=cluster, service=service_name, force=True)
 [2020/11/27 18:42:43.174] sh5605|   File "/usr/local/lib/python3.6/dist-packages/botocore/client.py", line 253, in _api_call
 [2020/11/27 18:42:43.249] sh5605|     return self._make_api_call(operation_name, kwargs)
 [2020/11/27 18:42:43.249] sh5605|   File "/usr/local/lib/python3.6/dist-packages/botocore/client.py", line 531, in _make_api_call
 [2020/11/27 18:42:43.249] sh5605|     api_params, operation_model, context=request_context)
 [2020/11/27 18:42:43.249] sh5605|   File "/usr/local/lib/python3.6/dist-packages/botocore/client.py", line 586, in _convert_to_request_dict
 [2020/11/27 18:42:43.249] sh5605|     api_params, operation_model)
 [2020/11/27 18:42:43.249] sh5605|   File "/usr/local/lib/python3.6/dist-packages/botocore/validate.py", line 291, in serialize_to_request
 [2020/11/27 18:42:43.249] sh5605|     raise ParamValidationError(report=report.generate_report())
 [2020/11/27 18:42:43.249] sh5605| botocore.exceptions.ParamValidationError: Parameter validation failed:
 [2020/11/27 18:42:43.249] sh5605| Unknown parameter in input: "force", must be one of: cluster, service
 [2020/11/27 18:42:43.275] uncaught exception: Error: [1] != [0] are not equal : Prune Container failed :
 [2020/11/27 18:42:43.275] doassert@src/mongo/shell/assert.js:20:14
 [2020/11/27 18:42:43.275] assert.eq@src/mongo/shell/assert.js:179:9
 [2020/11/27 18:42:43.275] @aws_e2e_ecs.js:39:4
 [2020/11/27 18:42:43.275] @aws_e2e_ecs.js:6:2
 [2020/11/27 18:42:43.279] failed to load: aws_e2e_ecs.js
 [2020/11/27 18:42:43.279] exiting with code -3

https://evergreen.mongodb.com/task/mongo_python_driver_aws_auth_test__platform~ubuntu_18.04_python_version~system_python3_aws_auth_test_latest_4119d35d040df5abefc67f05791f352bd1efe6e4_20_11_24_20_11_22



 Comments   
Comment by Shane Harvey [ 29/Jan/21 ]

Note this ticket requires driver changes, I've implemented the change in PYTHON-2445 here: 
https://github.com/mongodb/mongo-python-driver/commit/7ca1efda43cdc5f79b1c88174c80fdee33307523

The Java driver will need to make a similar change to resolve JAVA-3906.

Comment by Eric Adum (Inactive) [ 29/Jan/21 ]

https://github.com/mongodb-labs/drivers-evergreen-tools/pull/138

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