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

Fix handling of EC2 Instance Profile in EG Tests

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Component/s: Evergreen Tools
    • Labels:
      None
    • Needed - No Spec Changes
    • Hide

      Add appropriate Evergreen Config to restore the Instance Profile that is removed during the AWS Web Identity test.

      See example commit in Python: https://github.com/mongodb/mongo-python-driver/commit/2fe01929e93929cb904aafac1038fadd3d324395

      Show
      Add appropriate Evergreen Config to restore the Instance Profile that is removed during the AWS Web Identity test. See example commit in Python: https://github.com/mongodb/mongo-python-driver/commit/2fe01929e93929cb904aafac1038fadd3d324395
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4677 Fixed 1.24.5
      CXX-2711 Won't Do
      CSHARP-4714 Fixed 2.22.0
      GODRIVER-2900 Done
      JAVA-5066 Fixed 4.11.0
      NODE-5441 Done
      MOTOR-1150 Duplicate
      PYTHON-3825 Duplicate
      PHPC-2324 Scheduled
      RUBY-3291 Backlog
      RUST-1699 Fixed 2.7.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion CDRIVER-4677 Fixed 1.24.5 CXX-2711 Won't Do CSHARP-4714 Fixed 2.22.0 GODRIVER-2900 Done JAVA-5066 Fixed 4.11.0 NODE-5441 Done MOTOR-1150 Duplicate PYTHON-3825 Duplicate PHPC-2324 Scheduled RUBY-3291 Backlog RUST-1699 Fixed 2.7.0

      In DRIVERS-2605 we switched to using the EC2 Instance Profile that is added by the build team to each EG host.

      However, we were still removing the instance profile as part of our AWS "web identity" tests, because the AWS SDKs would not use the web identity credentials if instance profile credentials were available.

      When those hosts would get reused, they would not have the assigned instance profile. This would cause 404 errors in our AWS tests that relied on the predefined instance profile, and would also affect any other EG users that were relying on the new capability.

      This ticket tracks ensuring that we restore the instance profile as part of the teardown of the EG build.

      Relevant change to drivers-eg-tools: https://github.com/mongodb-labs/drivers-evergreen-tools/pull/307

      Python driver update: https://github.com/mongodb/mongo-python-driver/pull/1218

      Node driver update: https://github.com/mongodb/node-mongodb-native/pull/3686

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: