Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47186

instance creation fails with ec2 plugin 1.37 in eucalyptus environment

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • ec2-plugin
    • None
    • jenkins 2.80, ec2 plugin 1.37, eucalyptus cloud

      used in private eucalyptus cloud. instance creation works with plugin version 1.36.

      cloud configuration deleted, plugin re-installed and fresh cloud configuration done.

      instance launch gives following error:

      com.amazonaws.services.ec2.model.AmazonEC2Exception: Failed to bind the following fields:
      TagSpecification.1.ResourceType = instance
      TagSpecification.1.Tag.1.Key = jenkins_slave_type
      TagSpecification.1.Tag.1.Value = demand_slave (Service: AmazonEC2; Status Code: 400; Error Code: 400 Bad Request; Request ID: Failed to bind the following fields:
      TagSpecification.1.ResourceType = instance
      TagSpecification.1.Tag.1.Key = jenkins_slave_type
      TagSpecification.1.Tag.1.Value = demand_slave)
      at com.amazonaws.http.AmazonHttpClient$RequestExecutor.handleErrorResponse(AmazonHttpClient.java:1588)
      at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeOneRequest(AmazonHttpClient.java:1258)
      at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeHelper(AmazonHttpClient.java:1030)
      at com.amazonaws.http.AmazonHttpClient$RequestExecutor.doExecute(AmazonHttpClient.java:742)
      at com.amazonaws.http.AmazonHttpClient$RequestExecutor.executeWithTimer(AmazonHttpClient.java:716)
      at com.amazonaws.http.AmazonHttpClient$RequestExecutor.execute(AmazonHttpClient.java:699)
      at com.amazonaws.http.AmazonHttpClient$RequestExecutor.access$500(AmazonHttpClient.java:667)
      at com.amazonaws.http.AmazonHttpClient$RequestExecutionBuilderImpl.execute(AmazonHttpClient.java:649)
      at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:513)
      at com.amazonaws.services.ec2.AmazonEC2Client.doInvoke(AmazonEC2Client.java:13551)
      at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:13527)
      at com.amazonaws.services.ec2.AmazonEC2Client.executeRunInstances(AmazonEC2Client.java:13031)
      at com.amazonaws.services.ec2.AmazonEC2Client.runInstances(AmazonEC2Client.java:13008)
      at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:613)
      at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:399)
      at hudson.plugins.ec2.EC2Cloud.getNewOrExistingAvailableSlave(EC2Cloud.java:534)
      at hudson.plugins.ec2.EC2Cloud.doProvision(EC2Cloud.java:340)
      at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
      at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
      at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
      at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:841)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:135)
      at org.jenkinsci.plugins.ssegateway.Endpoint$SSEListenChannelFilter.doFilter(Endpoint.java:225)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
      at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:51)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
      at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
      at com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:47)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
      at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:95)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
      at jenkins.metrics.impl.MetricsFilter.doFilter(MetricsFilter.java:125)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:132)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:138)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:49)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
      at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
      at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
      at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
      at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
      at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
      at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
      at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
      at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
      at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
      at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
      at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
      at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
      at org.eclipse.jetty.server.Server.handle(Server.java:564)
      at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
      at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
      at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
      at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:278)
      at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:148)
      at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
      at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
      at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
      at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
      at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
      at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
      at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)

          [JENKINS-47186] instance creation fails with ec2 plugin 1.37 in eucalyptus environment

          I have similar issue on AWS. Plugin launches instance but Jenkins don't use it.

          Version 1.36 works fine, but 1.37 and now 1.38 don't.
          I have next messages looping in the log:

          Dec 07, 2017 2:18:25 PM INFO hudson.plugins.ec2.EC2Cloud provision
          Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@4fd9b80c needed by excess workload of 1 units of label 'tests-runner'
          Dec 07, 2017 2:18:26 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Considering launching ami-b44caace for template Centos 7 runner
          Dec 07, 2017 2:18:26 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate
          Dec 07, 2017 2:18:28 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          No existing instance found - created new instance: {AmiLaunchIndex: 0,ImageId: ami-b44caace,InstanceId: i-03f54f2d39b81644e,InstanceType: m4.xlarge,KeyName: jenkins-dynamic-node-key-for-master,LaunchTime: Thu Dec 07 14:18:28 UTC 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: us-east-1b,GroupName: ,Tenancy: default,},PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,ProductCodes: [],PublicDnsName: ,State: {Code: 0,Name: pending},StateTransitionReason: ,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622,Architecture: x86_64,BlockDeviceMappings: [],ClientToken: eca98bce-4cb0-4f4e-a38b-7125612ec43b,EbsOptimized: true,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [{Attachment: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,AttachmentId: eni-attach-737f31ab,DeleteOnTermination: true,DeviceIndex: 0,Status: attaching},Description: ,Groups: [{GroupName: SSH access,GroupId: sg-befde7cf}],Ipv6Addresses: [],MacAddress: 0e:aa:4d:82:70:e0,NetworkInterfaceId: eni-6d8865e5,OwnerId: 451007512781,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,PrivateIpAddresses: [{Primary: true,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120}],SourceDestCheck: true,Status: in-use,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622}],RootDeviceName: /dev/sda1,RootDeviceType: ebs,SecurityGroups: [{GroupName: SSH access,GroupId: sg-befde7cf}],SourceDestCheck: true,StateReason: {Code: pending,Message: pending},Tags: [{Key: Name,Value: Jenkins dynamic node -- test runner}, {Key: jenkins_slave_type,Value: demand_Centos 7 runner}],VirtualizationType: hvm}
          Dec 07, 2017 2:18:28 PM INFO hudson.plugins.ec2.EC2Cloud provision
          We have now 3 computers
          Dec 07, 2017 2:18:28 PM INFO hudson.plugins.ec2.EC2Cloud provision
          Attempting provision - finished, excess workload: 0
          Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.EC2Cloud provision
          Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@4fd9b80c needed by excess workload of 1 units of label 'tests-runner'
          Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Considering launching ami-b44caace for template Centos 7 runner
          Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate
          Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Found existing pending or running: pending instance: {AmiLaunchIndex: 0,ImageId: ami-b44caace,InstanceId: i-03f54f2d39b81644e,InstanceType: m4.xlarge,KeyName: jenkins-dynamic-node-key-for-master,LaunchTime: Thu Dec 07 14:18:28 UTC 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: us-east-1b,GroupName: ,Tenancy: default,},PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,ProductCodes: [],PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIpAddress: 34.226.219.171,State: {Code: 0,Name: pending},StateTransitionReason: ,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/sda1,Ebs: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,DeleteOnTermination: true,Status: attaching,VolumeId: vol-0453d6bb4906232ee}}, {DeviceName: /dev/sdb,Ebs: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,DeleteOnTermination: true,Status: attaching,VolumeId: vol-005b05a0390fed6a0}}],ClientToken: eca98bce-4cb0-4f4e-a38b-7125612ec43b,EbsOptimized: true,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [{Association: {IpOwnerId: amazon,PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIp: 34.226.219.171},Attachment: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,AttachmentId: eni-attach-737f31ab,DeleteOnTermination: true,DeviceIndex: 0,Status: attaching},Description: ,Groups: [{GroupName: SSH access,GroupId: sg-befde7cf}],Ipv6Addresses: [],MacAddress: 0e:aa:4d:82:70:e0,NetworkInterfaceId: eni-6d8865e5,OwnerId: 451007512781,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,PrivateIpAddresses: [{Association: {IpOwnerId: amazon,PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIp: 34.226.219.171},Primary: true,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120}],SourceDestCheck: true,Status: in-use,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622}],RootDeviceName: /dev/sda1,RootDeviceType: ebs,SecurityGroups: [{GroupName: SSH access,GroupId: sg-befde7cf}],SourceDestCheck: true,Tags: [{Key: Name,Value: Jenkins dynamic node -- test runner}, {Key: jenkins_slave_type,Value: demand_Centos 7 runner}],VirtualizationType: hvm}
          Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.EC2Cloud provision
          We have now 3 computers
          Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.EC2Cloud provision
          Attempting provision - finished, excess workload: 0
          Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.EC2Cloud provision
          Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@4fd9b80c needed by excess workload of 1 units of label 'tests-runner'
          Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Considering launching ami-b44caace for template Centos 7 runner
          Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate
          Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Found existing pending or running: running instance: {AmiLaunchIndex: 0,ImageId: ami-b44caace,InstanceId: i-03f54f2d39b81644e,InstanceType: m4.xlarge,KeyName: jenkins-dynamic-node-key-for-master,LaunchTime: Thu Dec 07 14:18:28 UTC 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: us-east-1b,GroupName: ,Tenancy: default,},PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,ProductCodes: [],PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIpAddress: 34.226.219.171,State: {Code: 16,Name: running},StateTransitionReason: ,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/sda1,Ebs: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,DeleteOnTermination: true,Status: attached,VolumeId: vol-0453d6bb4906232ee}}, {DeviceName: /dev/sdb,Ebs: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,DeleteOnTermination: true,Status: attached,VolumeId: vol-005b05a0390fed6a0}}],ClientToken: eca98bce-4cb0-4f4e-a38b-7125612ec43b,EbsOptimized: true,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [{Association: {IpOwnerId: amazon,PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIp: 34.226.219.171},Attachment: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,AttachmentId: eni-attach-737f31ab,DeleteOnTermination: true,DeviceIndex: 0,Status: attached},Description: ,Groups: [{GroupName: SSH access,GroupId: sg-befde7cf}],Ipv6Addresses: [],MacAddress: 0e:aa:4d:82:70:e0,NetworkInterfaceId: eni-6d8865e5,OwnerId: 451007512781,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,PrivateIpAddresses: [{Association: {IpOwnerId: amazon,PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIp: 34.226.219.171},Primary: true,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120}],SourceDestCheck: true,Status: in-use,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622}],RootDeviceName: /dev/sda1,RootDeviceType: ebs,SecurityGroups: [{GroupName: SSH access,GroupId: sg-befde7cf}],SourceDestCheck: true,Tags: [{Key: Name,Value: Jenkins dynamic node -- test runner}, {Key: jenkins_slave_type,Value: demand_Centos 7 runner}],VirtualizationType: hvm}
          Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.EC2Cloud provision
          We have now 3 computers
          Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.EC2Cloud provision
          Attempting provision - finished, excess workload: 0
          Dec 07, 2017 2:18:55 PM INFO hudson.plugins.ec2.EC2Cloud provision
          

          I'm using Jenkins ver. 2.93. But the same issue was with all 2.8* releases. Only solution is to downgrade plugin to 1.36.

          Alexander Sitnik added a comment - I have similar issue on AWS. Plugin launches instance but Jenkins don't use it. Version 1.36 works fine, but 1.37 and now 1.38 don't. I have next messages looping in the log: Dec 07, 2017 2:18:25 PM INFO hudson.plugins.ec2.EC2Cloud provision Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@4fd9b80c needed by excess workload of 1 units of label 'tests-runner' Dec 07, 2017 2:18:26 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Considering launching ami-b44caace for template Centos 7 runner Dec 07, 2017 2:18:26 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate Dec 07, 2017 2:18:28 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo No existing instance found - created new instance: {AmiLaunchIndex: 0,ImageId: ami-b44caace,InstanceId: i-03f54f2d39b81644e,InstanceType: m4.xlarge,KeyName: jenkins-dynamic-node-key-for-master,LaunchTime: Thu Dec 07 14:18:28 UTC 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: us-east-1b,GroupName: ,Tenancy: default,},PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,ProductCodes: [],PublicDnsName: ,State: {Code: 0,Name: pending},StateTransitionReason: ,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622,Architecture: x86_64,BlockDeviceMappings: [],ClientToken: eca98bce-4cb0-4f4e-a38b-7125612ec43b,EbsOptimized: true,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [{Attachment: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,AttachmentId: eni-attach-737f31ab,DeleteOnTermination: true,DeviceIndex: 0,Status: attaching},Description: ,Groups: [{GroupName: SSH access,GroupId: sg-befde7cf}],Ipv6Addresses: [],MacAddress: 0e:aa:4d:82:70:e0,NetworkInterfaceId: eni-6d8865e5,OwnerId: 451007512781,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,PrivateIpAddresses: [{Primary: true,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120}],SourceDestCheck: true,Status: in-use,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622}],RootDeviceName: /dev/sda1,RootDeviceType: ebs,SecurityGroups: [{GroupName: SSH access,GroupId: sg-befde7cf}],SourceDestCheck: true,StateReason: {Code: pending,Message: pending},Tags: [{Key: Name,Value: Jenkins dynamic node -- test runner}, {Key: jenkins_slave_type,Value: demand_Centos 7 runner}],VirtualizationType: hvm} Dec 07, 2017 2:18:28 PM INFO hudson.plugins.ec2.EC2Cloud provision We have now 3 computers Dec 07, 2017 2:18:28 PM INFO hudson.plugins.ec2.EC2Cloud provision Attempting provision - finished, excess workload: 0 Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.EC2Cloud provision Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@4fd9b80c needed by excess workload of 1 units of label 'tests-runner' Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Considering launching ami-b44caace for template Centos 7 runner Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Found existing pending or running: pending instance: {AmiLaunchIndex: 0,ImageId: ami-b44caace,InstanceId: i-03f54f2d39b81644e,InstanceType: m4.xlarge,KeyName: jenkins-dynamic-node-key-for-master,LaunchTime: Thu Dec 07 14:18:28 UTC 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: us-east-1b,GroupName: ,Tenancy: default,},PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,ProductCodes: [],PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIpAddress: 34.226.219.171,State: {Code: 0,Name: pending},StateTransitionReason: ,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/sda1,Ebs: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,DeleteOnTermination: true,Status: attaching,VolumeId: vol-0453d6bb4906232ee}}, {DeviceName: /dev/sdb,Ebs: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,DeleteOnTermination: true,Status: attaching,VolumeId: vol-005b05a0390fed6a0}}],ClientToken: eca98bce-4cb0-4f4e-a38b-7125612ec43b,EbsOptimized: true,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [{Association: {IpOwnerId: amazon,PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIp: 34.226.219.171},Attachment: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,AttachmentId: eni-attach-737f31ab,DeleteOnTermination: true,DeviceIndex: 0,Status: attaching},Description: ,Groups: [{GroupName: SSH access,GroupId: sg-befde7cf}],Ipv6Addresses: [],MacAddress: 0e:aa:4d:82:70:e0,NetworkInterfaceId: eni-6d8865e5,OwnerId: 451007512781,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,PrivateIpAddresses: [{Association: {IpOwnerId: amazon,PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIp: 34.226.219.171},Primary: true,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120}],SourceDestCheck: true,Status: in-use,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622}],RootDeviceName: /dev/sda1,RootDeviceType: ebs,SecurityGroups: [{GroupName: SSH access,GroupId: sg-befde7cf}],SourceDestCheck: true,Tags: [{Key: Name,Value: Jenkins dynamic node -- test runner}, {Key: jenkins_slave_type,Value: demand_Centos 7 runner}],VirtualizationType: hvm} Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.EC2Cloud provision We have now 3 computers Dec 07, 2017 2:18:35 PM INFO hudson.plugins.ec2.EC2Cloud provision Attempting provision - finished, excess workload: 0 Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.EC2Cloud provision Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@4fd9b80c needed by excess workload of 1 units of label 'tests-runner' Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Considering launching ami-b44caace for template Centos 7 runner Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Found existing pending or running: running instance: {AmiLaunchIndex: 0,ImageId: ami-b44caace,InstanceId: i-03f54f2d39b81644e,InstanceType: m4.xlarge,KeyName: jenkins-dynamic-node-key-for-master,LaunchTime: Thu Dec 07 14:18:28 UTC 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: us-east-1b,GroupName: ,Tenancy: default,},PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,ProductCodes: [],PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIpAddress: 34.226.219.171,State: {Code: 16,Name: running},StateTransitionReason: ,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/sda1,Ebs: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,DeleteOnTermination: true,Status: attached,VolumeId: vol-0453d6bb4906232ee}}, {DeviceName: /dev/sdb,Ebs: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,DeleteOnTermination: true,Status: attached,VolumeId: vol-005b05a0390fed6a0}}],ClientToken: eca98bce-4cb0-4f4e-a38b-7125612ec43b,EbsOptimized: true,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [{Association: {IpOwnerId: amazon,PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIp: 34.226.219.171},Attachment: {AttachTime: Thu Dec 07 14:18:28 UTC 2017,AttachmentId: eni-attach-737f31ab,DeleteOnTermination: true,DeviceIndex: 0,Status: attached},Description: ,Groups: [{GroupName: SSH access,GroupId: sg-befde7cf}],Ipv6Addresses: [],MacAddress: 0e:aa:4d:82:70:e0,NetworkInterfaceId: eni-6d8865e5,OwnerId: 451007512781,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120,PrivateIpAddresses: [{Association: {IpOwnerId: amazon,PublicDnsName: ec2-34-226-219-171.compute-1.amazonaws.com,PublicIp: 34.226.219.171},Primary: true,PrivateDnsName: ip-172-31-16-120.ec2.internal,PrivateIpAddress: 172.31.16.120}],SourceDestCheck: true,Status: in-use,SubnetId: subnet-9ad86dc3,VpcId: vpc-470f6622}],RootDeviceName: /dev/sda1,RootDeviceType: ebs,SecurityGroups: [{GroupName: SSH access,GroupId: sg-befde7cf}],SourceDestCheck: true,Tags: [{Key: Name,Value: Jenkins dynamic node -- test runner}, {Key: jenkins_slave_type,Value: demand_Centos 7 runner}],VirtualizationType: hvm} Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.EC2Cloud provision We have now 3 computers Dec 07, 2017 2:18:45 PM INFO hudson.plugins.ec2.EC2Cloud provision Attempting provision - finished, excess workload: 0 Dec 07, 2017 2:18:55 PM INFO hudson.plugins.ec2.EC2Cloud provision I'm using Jenkins ver. 2.93. But the same issue was with all 2.8* releases. Only solution is to downgrade plugin to 1.36.

          I can confirm the same problem with EC2. Downgrade to 1.36 fixes the problem. This repeats infinitely:

          Dec 07, 2017 10:23:06 PM INFO hudson.plugins.ec2.EC2Cloud provision
          Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@14e0d85e needed by excess workload of 1 units of label 'jenkins-slave'
          Dec 07, 2017 10:23:06 PM FINE hudson.plugins.ec2.EC2Cloud
          Counting current slaves: All AMIS
          Dec 07, 2017 10:23:06 PM FINE hudson.plugins.ec2.EC2Cloud
          Existing instance found: i-031c5d385ed4fbdc1 AMI: ami-27f8445e Template: null
          Dec 07, 2017 10:23:06 PM FINE hudson.plugins.ec2.EC2Cloud
          Counting current slaves: AMI: ami-27f8445e
          Dec 07, 2017 10:23:06 PM FINE hudson.plugins.ec2.EC2Cloud
          Existing instance found: i-031c5d385ed4fbdc1 AMI: ami-27f8445e Template: Jenkins access to GitHub repo scope
          Dec 07, 2017 10:23:06 PM FINE hudson.plugins.ec2.EC2Cloud
          Available Total Slaves: 2147483646 Available AMI slaves: 5 AMI: ami-27f8445e TemplateDesc: Jenkins access to GitHub repo scope
          Dec 07, 2017 10:23:06 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Considering launching ami-27f8445e for template Jenkins access to GitHub repo scope
          Dec 07, 2017 10:23:07 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate
          Dec 07, 2017 10:23:07 PM FINE hudson.plugins.ec2.SlaveTemplate
          Looking for existing instances with describe-instance: {Filters: [{Name: image-id,Values: [ami-27f8445e]}, {Name: instance.group-name,Values: [jenkins-slave]}, {Name: key-name,Values: [key-name]}, {Name: instance-type,Values: [c3.xlarge]}, {Name: tag:Name,Values: [jenkins-slave]}, {Name: tag:Roles,Values: [jenkins-slave]}, {Name: tag:Stages,Values: [internal]}],InstanceIds: [],}
          Dec 07, 2017 10:23:07 PM FINE hudson.plugins.ec2.SlaveTemplate
          checkInstance: {AmiLaunchIndex: 0,ImageId: ami-27f8445e,InstanceId: i-031c5d385ed4fbdc1,InstanceType: c3.xlarge,KeyName: key-name,LaunchTime: Thu Dec 07 22:14:17 GMT 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: eu-west-1b,GroupName: ,Tenancy: default,},PrivateDnsName: 1.2.3.4,PrivateIpAddress: 10.90.129.173,ProductCodes: [],PublicDnsName: ec2-1.2.3.4.eu-west-1.compute.amazonaws.com,PublicIpAddress: 1.2.3.4,State: {Code: 16,Name: running},StateTransitionReason: ,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/xvda,Ebs: {AttachTime: Thu Dec 07 22:14:17 GMT 2017,DeleteOnTermination: true,Status: attached,VolumeId: vol-08b1a62bafd708254}}],ClientToken: client-token,EbsOptimized: false,EnaSupport: true,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [],RootDeviceName: /dev/xvda,RootDeviceType: ebs,SecurityGroups: [{GroupName: jenkins-slave,GroupId: sg-9e17d4e8}],Tags: [{Key: Name,Value: jenkins-slave}, {Key: jenkins_slave_type,Value: demand_Jenkins access to GitHub repo scope}, {Key: Stages,Value: internal}, {Key: Roles,Value: jenkins-slave}],VirtualizationType: hvm}
          Dec 07, 2017 10:23:07 PM FINE hudson.plugins.ec2.SlaveTemplate
          true - Instance has no node, but can be used
          Dec 07, 2017 10:23:07 PM FINE hudson.plugins.ec2.SlaveTemplate
          Found existing instance: {AmiLaunchIndex: 0,ImageId: ami-27f8445e,InstanceId: i-031c5d385ed4fbdc1,InstanceType: c3.xlarge,KeyName: key-name,LaunchTime: Thu Dec 07 22:14:17 GMT 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: eu-west-1b,GroupName: ,Tenancy: default,},PrivateDnsName: 1.2.3.4,PrivateIpAddress: 10.90.129.173,ProductCodes: [],PublicDnsName: ec2-1.2.3.4.eu-west-1.compute.amazonaws.com,PublicIpAddress: 1.2.3.4,State: {Code: 16,Name: running},StateTransitionReason: ,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/xvda,Ebs: {AttachTime: Thu Dec 07 22:14:17 GMT 2017,DeleteOnTermination: true,Status: attached,VolumeId: vol-08b1a62bafd708254}}],ClientToken: client-token,EbsOptimized: false,EnaSupport: true,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [],RootDeviceName: /dev/xvda,RootDeviceType: ebs,SecurityGroups: [{GroupName: jenkins-slave,GroupId: sg-9e17d4e8}],Tags: [{Key: Name,Value: jenkins-slave}, {Key: jenkins_slave_type,Value: demand_Jenkins access to GitHub repo scope}, {Key: Stages,Value: internal}, {Key: Roles,Value: jenkins-slave}],VirtualizationType: hvm}
          Dec 07, 2017 10:23:07 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          Found existing pending or running: running instance: {AmiLaunchIndex: 0,ImageId: ami-27f8445e,InstanceId: i-blah,InstanceType: c3.xlarge,KeyName: key-name,LaunchTime: Thu Dec 07 22:14:17 GMT 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: eu-west-1b,GroupName: ,Tenancy: default,},PrivateDnsName: 1.2.3.4,PrivateIpAddress: 10.90.129.173,ProductCodes: [],PublicDnsName: ec2-1.2.3.4.eu-west-1.compute.amazonaws.com,PublicIpAddress: 1.2.3.4,State: {Code: 16,Name: running},StateTransitionReason: ,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/xvda,Ebs: {AttachTime: Thu Dec 07 22:14:17 GMT 2017,DeleteOnTermination: true,Status: attached,VolumeId: vol-08b1a62bafd708254}}],ClientToken: client-token,EbsOptimized: false,EnaSupport: true,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [],RootDeviceName: /dev/xvda,RootDeviceType: ebs,SecurityGroups: [{GroupName: jenkins-slave,GroupId: sg-9e17d4e8}],Tags: [{Key: Name,Value: jenkins-slave}, {Key: jenkins_slave_type,Value: demand_Jenkins access to GitHub repo scope}, {Key: Stages,Value: internal}, {Key: Roles,Value: jenkins-slave}],VirtualizationType: hvm}
          Dec 07, 2017 10:23:07 PM FINE hudson.plugins.ec2.SlaveTemplate
          Creating new slave for existing instance: {AmiLaunchIndex: 0,ImageId: ami-27f8445e,InstanceId: i-blah,InstanceType: c3.xlarge,KeyName: key-name,LaunchTime: Thu Dec 07 22:14:17 GMT 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: eu-west-1b,GroupName: ,Tenancy: default,},PrivateDnsName: 1.2.3.4,PrivateIpAddress: 10.90.129.173,ProductCodes: [],PublicDnsName: ec2-1.2.3.4.eu-west-1.compute.amazonaws.com,PublicIpAddress: 1.2.3.4,State: {Code: 16,Name: running},StateTransitionReason: ,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/xvda,Ebs: {AttachTime: Thu Dec 07 22:14:17 GMT 2017,DeleteOnTermination: true,Status: attached,VolumeId: vol-08b1a62bafd708254}}],ClientToken: client-token,EbsOptimized: false,EnaSupport: true,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [],RootDeviceName: /dev/xvda,RootDeviceType: ebs,SecurityGroups: [{GroupName: jenkins-slave,GroupId: sg-9e17d4e8}],Tags: [{Key: Name,Value: jenkins-slave}, {Key: jenkins_slave_type,Value: demand_Jenkins access to GitHub repo scope}, {Key: Stages,Value: internal}, {Key: Roles,Value: jenkins-slave}],VirtualizationType: hvm}
          Dec 07, 2017 10:23:07 PM INFO hudson.plugins.ec2.EC2Cloud provision
          We have now 1 computers
          Dec 07, 2017 10:23:07 PM INFO hudson.plugins.ec2.EC2Cloud provision
          Attempting provision - finished, excess workload: -3
          

           

          Edward Hartwell Goose added a comment - I can confirm the same problem with EC2. Downgrade to 1.36 fixes the problem. This repeats infinitely: Dec 07, 2017 10:23:06 PM INFO hudson.plugins.ec2.EC2Cloud provision Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@14e0d85e needed by excess workload of 1 units of label 'jenkins-slave' Dec 07, 2017 10:23:06 PM FINE hudson.plugins.ec2.EC2Cloud Counting current slaves: All AMIS Dec 07, 2017 10:23:06 PM FINE hudson.plugins.ec2.EC2Cloud Existing instance found: i-031c5d385ed4fbdc1 AMI: ami-27f8445e Template: null Dec 07, 2017 10:23:06 PM FINE hudson.plugins.ec2.EC2Cloud Counting current slaves: AMI: ami-27f8445e Dec 07, 2017 10:23:06 PM FINE hudson.plugins.ec2.EC2Cloud Existing instance found: i-031c5d385ed4fbdc1 AMI: ami-27f8445e Template: Jenkins access to GitHub repo scope Dec 07, 2017 10:23:06 PM FINE hudson.plugins.ec2.EC2Cloud Available Total Slaves: 2147483646 Available AMI slaves: 5 AMI: ami-27f8445e TemplateDesc: Jenkins access to GitHub repo scope Dec 07, 2017 10:23:06 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Considering launching ami-27f8445e for template Jenkins access to GitHub repo scope Dec 07, 2017 10:23:07 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate Dec 07, 2017 10:23:07 PM FINE hudson.plugins.ec2.SlaveTemplate Looking for existing instances with describe-instance: {Filters: [{Name: image-id,Values: [ami-27f8445e]}, {Name: instance.group-name,Values: [jenkins-slave]}, {Name: key-name,Values: [key-name]}, {Name: instance-type,Values: [c3.xlarge]}, {Name: tag:Name,Values: [jenkins-slave]}, {Name: tag:Roles,Values: [jenkins-slave]}, {Name: tag:Stages,Values: [internal]}],InstanceIds: [],} Dec 07, 2017 10:23:07 PM FINE hudson.plugins.ec2.SlaveTemplate checkInstance: {AmiLaunchIndex: 0,ImageId: ami-27f8445e,InstanceId: i-031c5d385ed4fbdc1,InstanceType: c3.xlarge,KeyName: key-name,LaunchTime: Thu Dec 07 22:14:17 GMT 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: eu-west-1b,GroupName: ,Tenancy: default ,},PrivateDnsName: 1.2.3.4,PrivateIpAddress: 10.90.129.173,ProductCodes: [],PublicDnsName: ec2-1.2.3.4.eu-west-1.compute.amazonaws.com,PublicIpAddress: 1.2.3.4,State: {Code: 16,Name: running},StateTransitionReason: ,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/xvda,Ebs: {AttachTime: Thu Dec 07 22:14:17 GMT 2017,DeleteOnTermination: true ,Status: attached,VolumeId: vol-08b1a62bafd708254}}],ClientToken: client-token,EbsOptimized: false ,EnaSupport: true ,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [],RootDeviceName: /dev/xvda,RootDeviceType: ebs,SecurityGroups: [{GroupName: jenkins-slave,GroupId: sg-9e17d4e8}],Tags: [{Key: Name,Value: jenkins-slave}, {Key: jenkins_slave_type,Value: demand_Jenkins access to GitHub repo scope}, {Key: Stages,Value: internal}, {Key: Roles,Value: jenkins-slave}],VirtualizationType: hvm} Dec 07, 2017 10:23:07 PM FINE hudson.plugins.ec2.SlaveTemplate true - Instance has no node, but can be used Dec 07, 2017 10:23:07 PM FINE hudson.plugins.ec2.SlaveTemplate Found existing instance: {AmiLaunchIndex: 0,ImageId: ami-27f8445e,InstanceId: i-031c5d385ed4fbdc1,InstanceType: c3.xlarge,KeyName: key-name,LaunchTime: Thu Dec 07 22:14:17 GMT 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: eu-west-1b,GroupName: ,Tenancy: default ,},PrivateDnsName: 1.2.3.4,PrivateIpAddress: 10.90.129.173,ProductCodes: [],PublicDnsName: ec2-1.2.3.4.eu-west-1.compute.amazonaws.com,PublicIpAddress: 1.2.3.4,State: {Code: 16,Name: running},StateTransitionReason: ,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/xvda,Ebs: {AttachTime: Thu Dec 07 22:14:17 GMT 2017,DeleteOnTermination: true ,Status: attached,VolumeId: vol-08b1a62bafd708254}}],ClientToken: client-token,EbsOptimized: false ,EnaSupport: true ,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [],RootDeviceName: /dev/xvda,RootDeviceType: ebs,SecurityGroups: [{GroupName: jenkins-slave,GroupId: sg-9e17d4e8}],Tags: [{Key: Name,Value: jenkins-slave}, {Key: jenkins_slave_type,Value: demand_Jenkins access to GitHub repo scope}, {Key: Stages,Value: internal}, {Key: Roles,Value: jenkins-slave}],VirtualizationType: hvm} Dec 07, 2017 10:23:07 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Found existing pending or running: running instance: {AmiLaunchIndex: 0,ImageId: ami-27f8445e,InstanceId: i-blah,InstanceType: c3.xlarge,KeyName: key-name,LaunchTime: Thu Dec 07 22:14:17 GMT 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: eu-west-1b,GroupName: ,Tenancy: default ,},PrivateDnsName: 1.2.3.4,PrivateIpAddress: 10.90.129.173,ProductCodes: [],PublicDnsName: ec2-1.2.3.4.eu-west-1.compute.amazonaws.com,PublicIpAddress: 1.2.3.4,State: {Code: 16,Name: running},StateTransitionReason: ,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/xvda,Ebs: {AttachTime: Thu Dec 07 22:14:17 GMT 2017,DeleteOnTermination: true ,Status: attached,VolumeId: vol-08b1a62bafd708254}}],ClientToken: client-token,EbsOptimized: false ,EnaSupport: true ,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [],RootDeviceName: /dev/xvda,RootDeviceType: ebs,SecurityGroups: [{GroupName: jenkins-slave,GroupId: sg-9e17d4e8}],Tags: [{Key: Name,Value: jenkins-slave}, {Key: jenkins_slave_type,Value: demand_Jenkins access to GitHub repo scope}, {Key: Stages,Value: internal}, {Key: Roles,Value: jenkins-slave}],VirtualizationType: hvm} Dec 07, 2017 10:23:07 PM FINE hudson.plugins.ec2.SlaveTemplate Creating new slave for existing instance: {AmiLaunchIndex: 0,ImageId: ami-27f8445e,InstanceId: i-blah,InstanceType: c3.xlarge,KeyName: key-name,LaunchTime: Thu Dec 07 22:14:17 GMT 2017,Monitoring: {State: disabled},Placement: {AvailabilityZone: eu-west-1b,GroupName: ,Tenancy: default ,},PrivateDnsName: 1.2.3.4,PrivateIpAddress: 10.90.129.173,ProductCodes: [],PublicDnsName: ec2-1.2.3.4.eu-west-1.compute.amazonaws.com,PublicIpAddress: 1.2.3.4,State: {Code: 16,Name: running},StateTransitionReason: ,Architecture: x86_64,BlockDeviceMappings: [{DeviceName: /dev/xvda,Ebs: {AttachTime: Thu Dec 07 22:14:17 GMT 2017,DeleteOnTermination: true ,Status: attached,VolumeId: vol-08b1a62bafd708254}}],ClientToken: client-token,EbsOptimized: false ,EnaSupport: true ,Hypervisor: xen,ElasticGpuAssociations: [],NetworkInterfaces: [],RootDeviceName: /dev/xvda,RootDeviceType: ebs,SecurityGroups: [{GroupName: jenkins-slave,GroupId: sg-9e17d4e8}],Tags: [{Key: Name,Value: jenkins-slave}, {Key: jenkins_slave_type,Value: demand_Jenkins access to GitHub repo scope}, {Key: Stages,Value: internal}, {Key: Roles,Value: jenkins-slave}],VirtualizationType: hvm} Dec 07, 2017 10:23:07 PM INFO hudson.plugins.ec2.EC2Cloud provision We have now 1 computers Dec 07, 2017 10:23:07 PM INFO hudson.plugins.ec2.EC2Cloud provision Attempting provision - finished, excess workload: -3  

          Alexander Sitnik added a comment - I have an update for my issue. It's tracked in JENKINS-47130 and JENKINS-46869 and has workaround: https://issues.jenkins-ci.org/browse/JENKINS-46869?focusedCommentId=315341&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-315341 So for me it's now solved.

            francisu Francis Upton
            artoku arto kumpumaki
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: