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

Test Failure - MONGODB-AWS auth aws_e2e_ec2.js could not find user MongoDB 6.0

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

      MONGODB-AWS Auth Ubuntu 18.04 Python 3.7 tests are failing due to a aws_e2e_ec2.js error

       [2023/04/06 21:13:52.493] Running command 'shell.exec' in function 'run aws auth test with aws EC2 credentials' (step 7.1 of 9).
       [2023/04/06 21:13:52.564] MongoDB shell version v4.4.19
       [2023/04/06 21:13:52.564] connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
       [2023/04/06 21:13:52.566] Implicit session: session { "id" : UUID("5cc6e12a-89b2-4366-a4a9-888337fd60de") }
       [2023/04/06 21:13:52.568] MongoDB server version: 4.4.19
       [2023/04/06 21:13:52.568] {"t":{"$date":"2023-04-06T21:13:52.568Z"},"s":"I",  "c":"-",        "id":22810,   "ctx":"js","msg":"shell: Started program","attr":{"pid":"8441","argv":["/bin/sh","-c","python3 -u lib/aws_assign_instance_profile.py --instance_profile_arn=arn:aws:iam::557821124784:instance-profile/authtest_instance_profile"]}}
       [2023/04/06 21:13:52.718] sh8441| Reading: http://169.254.169.254/latest/meta-data/iam/security-credentials/
       [2023/04/06 21:13:52.721] sh8441| Reading: http://169.254.169.254/latest/meta-data/iam/security-credentials/evergreen_task_hosts_instance_role_production
       [2023/04/06 21:13:52.721] sh8441| IMPORTANT: Found machine already has instance profile, skipping the assignment
       [2023/04/06 21:13:52.766] {"t":{"$date":"2023-04-06T21:13:52.766Z"},"s":"I",  "c":"-",        "id":22810,   "ctx":"js","msg":"shell: Started program","attr":{"pid":"8446","argv":["/data/mci/82917fbf8107a0c0e7a31a4adbff1c5f/drivers-tools/mongodb/bin/mongo","--host","localhost","--authenticationMechanism","MONGODB-AWS","--authenticationDatabase","$external","--eval","1"]}}
       [2023/04/06 21:13:52.816] sh8446| MongoDB shell version v4.4.19
       [2023/04/06 21:13:52.816] sh8446| connecting to: mongodb://localhost:27017/?authMechanism=MONGODB-AWS&authSource=%24external&compressors=disabled&gssapiServiceName=mongodb
       [2023/04/06 21:13:52.831] sh8446| Error: Could not find user "arn:aws:sts::557821124784:assumed-role/evergreen_task_hosts_instance_role_production/*" for db "$external" :
       [2023/04/06 21:13:52.831] sh8446| connect@src/mongo/shell/mongo.js:374:17
       [2023/04/06 21:13:52.831] sh8446| @(connect):3:6
       [2023/04/06 21:13:52.834] sh8446| exception: connect failed
       [2023/04/06 21:13:52.834] sh8446| exiting with code 1
       [2023/04/06 21:13:52.834] uncaught exception: Error: [1] != [0] are not equal : Could not auth with smoke user :
       [2023/04/06 21:13:52.834] doassert@src/mongo/shell/assert.js:20:14
       [2023/04/06 21:13:52.834] assert.eq@src/mongo/shell/assert.js:179:9
       [2023/04/06 21:13:52.834] @aws_e2e_ec2.js:54:1
       [2023/04/06 21:13:52.834] @aws_e2e_ec2.js:6:2
       [2023/04/06 21:13:52.838] failed to load: aws_e2e_ec2.js
       [2023/04/06 21:13:52.838] exiting with code -3
       [2023/04/06 21:13:52.838] Command 'shell.exec' in function 'run aws auth test with aws EC2 credentials' failed: shell script encountered problem: exit code 253.
      

      https://evergreen.mongodb.com/task/mongo_python_driver_aws_auth_test__platform~ubuntu_18.04_python_version~3.7_aws_auth_test_4.4_acc6605ea119ca62b4d9dbff07b62bbc7c86c3d8_23_04_05_18_24_27

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: