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

EC2 plugin: Plugin fails to automatically launch slaves to meet demand

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • ec2-plugin
    • None
    • Jenkins v2.12 / Ubuntu 14.04.4 x86_64 / Oracle Java 1.80_91-b14

      Hi,

      We've recently started seeing a problem auto-launching EC2 build slaves. The plugin detects that it needs to launch a slave to meet demand and that no current instances are runnign - it just doesn't launch anything.

      Manual provisioning works.

      Log (some info sanitised):

      Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.EC2Cloud provision
      INFO: Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@6a756eca needed by excess workload of 1 units of label 'null'
      Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.EC2Cloud provision
      WARNING: Label is null - can't calculate how many executors slave will have. Using 2 number of executors
      Considering launching ami-6c14310f for template Remote Ubuntu 14.04 Docker Machine
      Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.SlaveTemplate logProvisionInfo
      INFO: Considering launching ami-6c14310f for template Remote Ubuntu 14.04 Docker Machine
      Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate
      Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.SlaveTemplate logProvisionInfo
      INFO: Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate
      Looking for existing instances with describe-instance: {InstanceIds: [],Filters: [{Name: image-id,Values: [ami-6c14310f]}, {Name: subnet-id,Values: [subnet-XXXXX]}, {Name: instance.group-id,Values: [sg-XXXXX]}, {Name: key-name,Values: [XXXXX]}, {Name: instance-type,Values: [t2.small]}, {Name: tag:Name,Values: [Jenkins Build Slave]}],}
      No existing instance found - but cannot create new instance
      Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.EC2Cloud provision
      INFO: Attempting provision - finished, excess workload: 1
      

          [JENKINS-36516] EC2 plugin: Plugin fails to automatically launch slaves to meet demand

          Chin Godawita created issue -
          Chin Godawita made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Chin Godawita made changes -
          Description Original: Hi,

          We've recently started seeing a problem auto-launching EC2 build slaves. The plugin detects that it needs to launch a slave to meet demand and that no current instances are runnign - it just doesn't launch anything.

          Log (some info sanitised):
          {noformat}
          Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.EC2Cloud provision
          INFO: Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@6a756eca needed by excess workload of 1 units of label 'null'
          Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.EC2Cloud provision
          WARNING: Label is null - can't calculate how many executors slave will have. Using 2 number of executors
          Considering launching ami-6c14310f for template Remote Ubuntu 14.04 Docker Machine
          Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          INFO: Considering launching ami-6c14310f for template Remote Ubuntu 14.04 Docker Machine
          Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate
          Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          INFO: Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate
          Looking for existing instances with describe-instance: {InstanceIds: [],Filters: [{Name: image-id,Values: [ami-6c14310f]}, {Name: subnet-id,Values: [subnet-XXXXX]}, {Name: instance.group-id,Values: [sg-XXXXX]}, {Name: key-name,Values: [XXXXX]}, {Name: instance-type,Values: [t2.small]}, {Name: tag:Name,Values: [Jenkins Build Slave]}],}
          No existing instance found - but cannot create new instance
          Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.EC2Cloud provision
          INFO: Attempting provision - finished, excess workload: 1
          {noformat}
          New: Hi,

          We've recently started seeing a problem auto-launching EC2 build slaves. The plugin detects that it needs to launch a slave to meet demand and that no current instances are runnign - it just doesn't launch anything.

          Manual provisioning works.

          Log (some info sanitised):
          {noformat}
          Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.EC2Cloud provision
          INFO: Attempting to provision slave from template hudson.plugins.ec2.SlaveTemplate@6a756eca needed by excess workload of 1 units of label 'null'
          Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.EC2Cloud provision
          WARNING: Label is null - can't calculate how many executors slave will have. Using 2 number of executors
          Considering launching ami-6c14310f for template Remote Ubuntu 14.04 Docker Machine
          Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          INFO: Considering launching ami-6c14310f for template Remote Ubuntu 14.04 Docker Machine
          Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate
          Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.SlaveTemplate logProvisionInfo
          INFO: Setting Instance Initiated Shutdown Behavior : ShutdownBehavior.Terminate
          Looking for existing instances with describe-instance: {InstanceIds: [],Filters: [{Name: image-id,Values: [ami-6c14310f]}, {Name: subnet-id,Values: [subnet-XXXXX]}, {Name: instance.group-id,Values: [sg-XXXXX]}, {Name: key-name,Values: [XXXXX]}, {Name: instance-type,Values: [t2.small]}, {Name: tag:Name,Values: [Jenkins Build Slave]}],}
          No existing instance found - but cannot create new instance
          Jul 08, 2016 3:47:34 PM hudson.plugins.ec2.EC2Cloud provision
          INFO: Attempting provision - finished, excess workload: 1
          {noformat}
          karthic jayaraman made changes -
          Priority Original: Major [ 3 ] New: Blocker [ 1 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 173229 ] New: JNJira + In-Review [ 185007 ]
          Sasha Miroshnychenko made changes -
          Assignee Original: Francis Upton [ francisu ] New: Sasha Miroshnychenko [ bahdad ]
          Sasha Miroshnychenko made changes -
          Assignee Original: Sasha Miroshnychenko [ bahdad ] New: Francis Upton [ francisu ]

            francisu Francis Upton
            torpy Chin Godawita
            Votes:
            10 Vote for this issue
            Watchers:
            25 Start watching this issue

              Created:
              Updated: