jenkinsci / amazon-ecs-plugin

Amazon EC2 Container Service Plugin for Jenkins
https://plugins.jenkins.io/amazon-ecs
MIT License
192 stars 226 forks source link

Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@af4c69d failed java.lang.IllegalArgumentException #299

Closed venkatd4u closed 1 year ago

venkatd4u commented 1 year ago

Jenkins and plugins versions report

Environment ```text Paste the output here ```

What Operating System are you using (both controller, and any agents involved in the problem)?

linux

Reproduction steps

After recent jenkins update to latest image to 2.375.1, we are facing issues with jenkins slave node provisioning.

Expected Results

Slave node with label fargate-agent getting provisioned

Actual Results

Node provisioining

Anything else?

No response

venkatd4u commented 1 year ago

Fargate Slave agent not picking up due to below error

Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@af4c69d failed java.lang.IllegalArgumentException at hudson.slaves.NodeProvisioner$PlannedNode.(NodeProvisioner.java:102) at com.cloudbees.jenkins.plugins.amazonecs.ECSCloud.provision(ECSCloud.java:283) at com.cloudbees.jenkins.plugins.amazonecs.ECSProvisioningStrategy.apply(ECSProvisioningStrategy.java:65) at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:325) at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:823) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:94) at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:69) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829)

venkatd4u commented 1 year ago

Looks like the problem is due to the plugin version 1.46. We tried to downgrade it to 1.41 & then fargate-agent label started to work. May be need to check why this updated plugin version is having problem.

OneBadSanta commented 1 year ago

+1 Same issue. Same solution as @venkatd4u

elazo89 commented 1 year ago

+1 I also experienced this issue in 1.46. Version 1.41 works fine. My Jenkins version is 2.375.1.

Stericson commented 1 year ago

Duplicate of #291 Please see this issue for some potential work arounds.

This seems to be caused by configurations that need updating in 1.46. It seems that there might be more sensible defaults. Something I'll look into. In the meantime, will close this as a duplicate.