[DRIVERS-2221] AWS authentication tests failing on v6.0-latest Created: 28/Feb/22  Updated: 28/Oct/23  Resolved: 04/Mar/22

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

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

Issue Links:
Problem/Incident
is caused by SERVER-57369 Remove support for authentication as ... Closed
Related
is related to PYTHON-3147 Test Failure - MONGODB-AWS Auth Ubunt... Closed
Driver Changes: Not Needed

 Description   

DBX tests for AWS authentication are failing on latest (v6.0.0-alpha-194) after SERVER-57369:

 [2022/02/28 19:28:08.199] MongoDB shell version v6.0.0-alpha-194-g0544506
 [2022/02/28 19:28:08.199] connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
 [2022/02/28 19:28:08.201] Implicit session: session { "id" : UUID("ba35b7f3-cb4c-45f3-81f5-572e7009c140") }
 [2022/02/28 19:28:08.265] MongoDB server version: 6.0.0-alpha-194-g0544506
 [2022/02/28 19:28:08.265] Error: Each client connection may only be authenticated once. Previously authenticated as: bob@admin
 [2022/02/28 19:28:08.265] uncaught exception: Error: assert failed :
 [2022/02/28 19:28:08.265] doassert@src/mongo/shell/assert.js:20:14
 [2022/02/28 19:28:08.265] assert@src/mongo/shell/assert.js:151:9
 [2022/02/28 19:28:08.265] @aws_e2e_regular_aws.js:18:1
 [2022/02/28 19:28:08.265] @aws_e2e_regular_aws.js:7:2
 [2022/02/28 19:28:08.271] failed to load: aws_e2e_regular_aws.js
 [2022/02/28 19:28:08.271] exiting with code -3
 [2022/02/28 19:28:08.271] Command failed: command encountered problem: error waiting on process '0a75b3ee-7d13-45c3-94e5-8d743456e954': exit status 253

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



 Comments   
Comment by Githook User [ 18/Jul/22 ]

Author:

{'name': 'Tim Fogarty', 'email': 'tim.fogarty@mongodb.com', 'username': 'tfogo'}

Message: TOOLS-3110 Fix 5.3 and 6.0 tests (#447)

Comment by Githook User [ 03/Mar/22 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: DRIVERS-2221 Fix AWS scripts relying on multi-authentication (#190)
Branch: master
https://github.com/mongodb-labs/drivers-evergreen-tools/commit/7fda91d76cfd1f06713a5b6bca69fc932d365fe7

Comment by Benji Rewis (Inactive) [ 03/Mar/22 ]

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

Comment by Shane Harvey [ 01/Mar/22 ]

See this commit where the server fixed the above issues except for the one in lib/ecs_hosted_test.js: https://github.com/10gen/mongo-enterprise-modules/commit/536a2e918d6fae3334b0ca6cb3d789914db73164

Comment by Shane Harvey [ 28/Feb/22 ]

I believe we need to logout before authenticating a second time in these places:

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