Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58024

Upgrading the EC2 Plugin to v1.43 causes all agents to be terminated due to maxTotalUses

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ec2-plugin
    • Labels:
      None
    • Similar Issues:
    • Released As:
      1.44.1

      Description

      The first time I upgraded the ec2 plugin from v1.42 to v1.43, Jenkins terminated all of my ec2 agents. The following messages appeared in the Jenkins system logs:

      maxTotalUses drained - suspending agent i-02dredactedxxxa6a 
      Agent i-02dredactedxxxa6a is terminated due to maxTotalUses (0)
      

      This happened even though "Maximum Total Uses" was set to -1 (unlimited) in the Jenkins system configuration.

      After manually launching new agents, everything seemed to work fine. It appears that the new version of the plugin does not correctly read the state of the instances created by the previous version, so it thinks that the usage cap was exceeded. If this is the case, v1.43 should at least be flagged in the plugin manager as containing breaking changes.

        Attachments

          Activity

          Hide
          raihaan Raihaan Shouhell added a comment -

          Fixed in 1.44.1

          Show
          raihaan Raihaan Shouhell added a comment - Fixed in 1.44.1

            People

            • Assignee:
              raihaan Raihaan Shouhell
              Reporter:
              csang Christopher Sang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: