Title: Message Title
Stefan Verhoeff created an issue
Jenkins / JENKINS-57405
Stop/Disconnect on Idle Timeout feature not working after updating Node description template
Issue Type:
Bug
Assignee:
FABRIZIO MANFREDI
Components:
ec2-plugin
Created:
2019-05-10 12:01
Environment:
Jenkins ver. 2.150.1, EC2 plugin 1.43
Priority:
Minor
Reporter:
Stefan Verhoeff
Observed after upgrade from EC2 plugin 1.42 to 1.43. When changing the "Description" of an EC2 node template in the Jenkins config, the "Stop/Disconnect on Idle Timeout" feature does not work anymore for any nodes created before the change. The nodes stay stopped and new nodes are created instead of the old ones re-used. This also happens for any nodes that were created on Jenkins with an EC2 plugin version <1.43. Because in 1.43 the node names are updated with more information to the instance name (PR-334 [1]). This exception happens with that affect nodes, may be related:
May 10, 2019 9:55:53 AM hudson.model.AbstractCIBase updateComputer
WARNING: Error updating node EC2 (Mobility RD EU-West-1) - android-m52xlarge-eu-west-1 (i-009cd08cab2a1f2b2), continuing
java.lang.NullPointerException
at hudson.plugins.ec2.EC2RetentionStrategy.internalCheck(EC2RetentionStrategy.java:140)
at hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:92)
at hudson.plugins.ec2.EC2RetentionStrategy.check(EC2RetentionStrategy.java:50)
at hudson.slaves.SlaveComputer$4.run(SlaveComputer.java:843)
at hudson.model.Queue._withLock(Queue.java:1381)
at hudson.model.Queue.withLock(Queue.java:1258)