[JIRA] (JENKINS-41426) EC2- Keeps sending stop signal to a manually stopped instance

3 views
Skip to first unread message

cardenas.mcb@gmail.com (JIRA)

unread,
Jan 25, 2017, 8:49:01 AM1/25/17
to jenkinsc...@googlegroups.com
Manuel Cardenas created an issue
 
Jenkins / Bug JENKINS-41426
EC2- Keeps sending stop signal to a manually stopped instance
Issue Type: Bug Bug
Assignee: Francis Upton
Components: ec2-plugin
Created: 2017/Jan/25 1:48 PM
Environment: * Jenkins 2.19.4.2
* Java Version: 1.8.0_111
* ec2:1.36 'Amazon EC2 plugin'
Priority: Minor Minor
Reporter: Manuel Cardenas

When using EC2 plugin to stop (not terminate) slave instances after a certain amount of idle time, if you stop manually one of those slaves you can see in the logs messages like the following one:

```
INFO h.p.ec2.EC2RetentionStrategy#internalCheck: Idle timeout of [XXX] after 82 idle minutes
INFO h.plugins.ec2.EC2AbstractSlave#idleTimeout: EC2 instance idle time expired: [XXX-ID]
INFO h.plugins.ec2.EC2AbstractSlave#stop: EC2 instance stop request sent for [XXX-ID]
```

This message fill the logs. Any way to remove it?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

cardenas.mcb@gmail.com (JIRA)

unread,
Jan 25, 2017, 8:57:01 AM1/25/17
to jenkinsc...@googlegroups.com
Manuel Cardenas updated an issue
Change By: Manuel Cardenas
When using EC2 plugin to stop (not terminate) slave instances after a certain amount of idle time, if you stop manually one of those slaves before the stop signal is sent, you can see in the logs messages like the following one:


```
INFO h.p.ec2.EC2RetentionStrategy#internalCheck: Idle timeout of [XXX] after 82 idle minutes
INFO h.plugins.ec2.EC2AbstractSlave#idleTimeout: EC2 instance idle time expired: [XXX-ID]
INFO h.plugins.ec2.EC2AbstractSlave#stop: EC2 instance stop request sent for [XXX-ID]
```
The plugin keeps sending the stop signal even if the instance is already stopped.
This message fill the logs. Any way to remove it?

luigi.tagliamonte86@gmail.com (JIRA)

unread,
Mar 20, 2017, 3:25:01 PM3/20/17
to jenkinsc...@googlegroups.com
Luigi Tagliamonte commented on Bug JENKINS-41426
 
Re: EC2- Keeps sending stop signal to a manually stopped instance

Hello there,

I have the same problem and I think that for stopped or disconnected computers (Jenkins slaves nodes) the internal check function

https://github.com/jenkinsci/ec2-plugin/blob/master/src/main/java/hudson/plugins/ec2/EC2RetentionStrategy.java#L92

should not be executed or, if it is like that by design (I'm not a Jenkins expert) you should return 1 at the beginning of the function and avoid to do all the math and re-send a stop request.

If my analysis if the issue is correct I will be happy to open a PR.

This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

luigi.tagliamonte86@gmail.com (JIRA)

unread,
Mar 20, 2017, 6:55:05 PM3/20/17
to jenkinsc...@googlegroups.com
Luigi Tagliamonte edited a comment on Bug JENKINS-41426
Hello there,

I have the same problem and I think that for stopped or disconnected computers (Jenkins slaves nodes) the internal check function

[ https://github.com/jenkinsci/ec2-plugin/blob/master/src/main/java/hudson/plugins/ec2/EC2RetentionStrategy.java#L92 ]

should not be executed or, if it is like that by design (I'm not a Jenkins expert) you should return 1 at the beginning of the function and avoid to do all the math and re-send a stop request.

If my analysis if of the issue is correct I will be happy to open a PR.

adrien.lecharpentier@gmail.com (JIRA)

unread,
Oct 3, 2018, 4:19:03 AM10/3/18
to jenkinsc...@googlegroups.com
Adrien Lecharpentier updated an issue
 
When using EC2 plugin to stop (not terminate) slave instances after a certain amount of idle time, if you stop manually one of those slaves before the stop signal is sent, you can see in the logs messages like the following one:

``` {noformat}
INFO h.p.ec2.EC2RetentionStrategy#internalCheck: Idle timeout of [XXX] after 82 idle minutes
INFO h.plugins.ec2.EC2AbstractSlave#idleTimeout: EC2 instance idle time expired: [XXX-ID]
INFO h.plugins.ec2.EC2AbstractSlave#stop: EC2 instance stop request sent for [XXX-ID]
``` {noformat}

The plugin keeps sending the stop signal even if the instance is already stopped.
This message fill the logs. Any way to remove it?
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

adrien.lecharpentier@gmail.com (JIRA)

unread,
Oct 3, 2018, 4:19:05 AM10/3/18
to jenkinsc...@googlegroups.com

raihaan.shouhell@autodesk.com (JIRA)

unread,
Sep 2, 2019, 2:58:03 AM9/2/19
to jenkinsc...@googlegroups.com
Raihaan Shouhell commented on Bug JENKINS-41426
 
Re: EC2- Keeps sending stop signal to a manually stopped instance

We now check for the current state and do nothing if already in the desired state

raihaan.shouhell@autodesk.com (JIRA)

unread,
Sep 2, 2019, 2:58:04 AM9/2/19
to jenkinsc...@googlegroups.com
Raihaan Shouhell closed an issue as Fixed
 
Change By: Raihaan Shouhell
Status: Open Closed
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages