[JIRA] (JENKINS-59520) EC2 Plugin 'Maximum Total Uses' counter resets itself when Stop/Disconnect on Idle Timeout is used

3 views
Skip to first unread message

marc.jay@taskize.com (JIRA)

unread,
Sep 24, 2019, 6:39:03 PM9/24/19
to jenkinsc...@googlegroups.com
Marc Jay created an issue
 
Jenkins / Bug JENKINS-59520
EC2 Plugin 'Maximum Total Uses' counter resets itself when Stop/Disconnect on Idle Timeout is used
Issue Type: Bug Bug
Assignee: FABRIZIO MANFREDI
Components: ec2-plugin
Created: 2019-09-24 22:38
Environment: EC2 Plugin 1.45
Jenkins 2.176.3
Priority: Minor Minor
Reporter: Marc Jay

My expectation of selecting 'Stop/Disconnect on Idle Timeout' and setting a Maximum Total Uses value of, say, 10, would be that after running 5 jobs, the instance being stopped due to idle timeout, then 5 more jobs running on that instance, the instance would be terminated and the next job would launch on a new instance. 

 

What I am seeing is that after running 5 jobs and the Maximum Total Uses number dropping to 5, after the agent instance stops, and is then started again, the Maximum Total Uses remaining number resets itself to 10. The same instance has been used 5 times but that information is lost. Is this behaviour expected? If not, would a pull request be accepted or a fix be available to maintain the number of uses remaining across starting and stopping of an instance?

 

Many thanks

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

raihaan.shouhell@autodesk.com (JIRA)

unread,
Oct 13, 2019, 11:02:03 PM10/13/19
to jenkinsc...@googlegroups.com
Raihaan Shouhell commented on Bug JENKINS-59520
 
Re: EC2 Plugin 'Maximum Total Uses' counter resets itself when Stop/Disconnect on Idle Timeout is used

AFAICT Stop instances does not work with maximum uses. Because when an agent is stopped jenkins forgets about its state.

 

Reply all
Reply to author
Forward
0 new messages