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

Clean up Azure resources on task failure

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Component/s: None
    • Labels:
      None
    • Needed
    • Hide

      Add an `expansions.update` command to the `teardown_group` in `testazurekms_task_group`.

      See https://github.com/mongodb/mongo-c-driver/pull/1234/files for an example.

      Show
      Add an `expansions.update` command to the `teardown_group` in `testazurekms_task_group`. See https://github.com/mongodb/mongo-c-driver/pull/1234/files for an example.
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      CDRIVER-4608 Fixed 1.24.0
      CXX-2669 Works as Designed
      CSHARP-4605 Fixed 2.20.0
      GODRIVER-2803 Fixed 1.12.0
      JAVA-4926 Fixed 4.10.0
      NODE-5183 Fixed 5.3.0
      MOTOR-1113 Duplicate
      PYTHON-3658 Fixed 4.4
      PHPLIB-1104 Won't Do
      RUBY-3236 Fixed 2.19.0
      RUST-1626 Duplicate
      $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-4608 Fixed 1.24.0 CXX-2669 Works as Designed CSHARP-4605 Fixed 2.20.0 GODRIVER-2803 Fixed 1.12.0 JAVA-4926 Fixed 4.10.0 NODE-5183 Fixed 5.3.0 MOTOR-1113 Duplicate PYTHON-3658 Fixed 4.4 PHPLIB-1104 Won't Do RUBY-3236 Fixed 2.19.0 RUST-1626 Duplicate

      Summary

      Update Evergreen config to delete Azure resources on task failure for the integration test added in DRIVERS-2411.

      Motivation

      DRIVERS-2411 added an integration test for Azure. If the test setup fails, it may result in resources not being deleted in Azure. This may result in test failures when limits are reached:

      https://parsley.mongodb.com/evergreen/mongo_java_driver_testazurekms_variant_testazurekms_task_22cda2c78e574ea3e761926ef14dfde3d69646a6_23_04_05_18_30_41/0/task?bookmarks=0,386&shareLine=356

      ERROR: {"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/10b880db-9bca-464f-aec4-2b9a1c96572c/resourceGroups/DRIVERS-2411/providers/Microsoft.Resources/deployments/vm_deploy_LcBmS1IG7IaE1BUhNil8GVEbo5mIMYno","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"PublicIPCountLimitReached","message":"Cannot create more than 20 public IP addresses for this subscription in this region.","details":[]}]}}
      

      Who is the affected end user?

      DBX Engineers

      How does this affect the end user?

      Azure KMS test fails

      How likely is it that this problem or use case will occur?

      Likely. It has happened several times, and requires manually deleting Azure resources.

      If the problem does occur, what are the consequences and how severe are they?

      Test failures.

      Is this issue urgent?

      No.

      Is this ticket required by a downstream team?

      No.

      Is this ticket only for tests?

      Yes.

      Acceptance Criteria

      Azure resources are deleted on task failure.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Kevin Albertson Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: