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



    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • ec2-plugin
    • None
    • 1.44.1


      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.



          csang Christopher Sang created issue -
          raihaan Raihaan Shouhell made changes -
          Field Original Value New Value
          Assignee FABRIZIO MANFREDI [ thoulen ] Raihaan Shouhell [ raihaan ]
          raihaan Raihaan Shouhell made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          raihaan Raihaan Shouhell made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]

          Fixed in 1.44.1

          raihaan Raihaan Shouhell added a comment - Fixed in 1.44.1
          raihaan Raihaan Shouhell made changes -
          Released As 1.44.1
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Resolved [ 5 ]


            raihaan Raihaan Shouhell
            csang Christopher Sang
            0 Vote for this issue
            2 Start watching this issue