ec2-plugin icon indicating copy to clipboard operation
ec2-plugin copied to clipboard

Handle DescribeInstances failures when creating new instance

Open dbnicholson opened this issue 4 years ago • 2 comments

Sometimes when launching a new instance, DescribeInstances does not report data within the amount of time that getInstanceWithRetry waits. However, the instance is created and eventually Jenkins can't create any more nodes because we're at maximum capacity.

This PR attempts 2 fixes:

  1. Increase the timeout waiting for DescribeInstances to return data when creating a new instance

  2. If no data could be found, send a termination request for the request so it doesn't pollute the capacity accounting.

dbnicholson avatar Oct 31 '19 17:10 dbnicholson

BTW, I haven't actually run or built this code. I don't have a setup to build Jenkins plugins.

dbnicholson avatar Oct 31 '19 17:10 dbnicholson

Looks like you have a compiler error. You can build the plugin by running mvn install.

jvz avatar Oct 31 '19 19:10 jvz