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

ec2-plugin counts *every* instance (not just Jenkins slave instances) when counting slaves; incorrectly hits slave cap

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: ec2-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Upgraded to just released ec2-plugin 1.30. Have no Jenkins slave running. Trying to get it to auto-create a new slave by running a job.

      Get this repeatedly in my jenkins log:
      ```
      Jan 24, 2016 2:00:52 PM INFO hudson.plugins.ec2.EC2Cloud provisionSlaveIfPossible
      Cannot provision - no capacity for instances: -177
      Jan 24, 2016 2:00:52 PM INFO hudson.plugins.ec2.EC2Cloud provision
      Attempting provision - finished, excess workload: 1
      Jan 24, 2016 2:00:59 PM INFO hudson.plugins.ec2.EC2Cloud provisionSlaveIfPossible
      Cannot provision - no capacity for instances: -177
      Jan 24, 2016 2:00:59 PM INFO hudson.plugins.ec2.EC2Cloud provision
      Attempting provision - finished, excess workload: 1
      ```

      In our EC2 region, at the moment we have no Jenkins slaves running, neither on-demand nor spot. There are about 183 instances running or stopped. I think it's counting every single instance, and counting them all against the max slave.

      This happens regardless of whether I have jenkins configured to create on demand slave or spot slaves.

      Have to downgrade to get it to autocreate slaves.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Francis Upton IV
          Path:
          src/main/java/hudson/plugins/ec2/EC2Cloud.java
          http://jenkins-ci.org/commit/ec2-plugin/f95e3d52c3872f0fddb1d97f23253b5593eeb641
          Log:
          JENKINS-32584 ec2-plugin counts every instance (not just Jenkins slave instances) when counting slaves; incorrectly hits slave cap

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Francis Upton IV Path: src/main/java/hudson/plugins/ec2/EC2Cloud.java http://jenkins-ci.org/commit/ec2-plugin/f95e3d52c3872f0fddb1d97f23253b5593eeb641 Log: JENKINS-32584 ec2-plugin counts every instance (not just Jenkins slave instances) when counting slaves; incorrectly hits slave cap
          Hide
          francisu Francis Upton added a comment -

          I think I have fixed this issue. Can you please try installing this to verify the fix:

          https://jenkins.ci.cloudbees.com/job/plugins/job/ec2-plugin/371/org.jenkins-ci.plugins$ec2/

          Once you verify it fixes the issue, I will make a new release.

          Show
          francisu Francis Upton added a comment - I think I have fixed this issue. Can you please try installing this to verify the fix: https://jenkins.ci.cloudbees.com/job/plugins/job/ec2-plugin/371/org.jenkins-ci.plugins$ec2/ Once you verify it fixes the issue, I will make a new release.
          Hide
          mbarrien Michael Barrientos added a comment -

          Your build #371 snapshot worked for me.

          Show
          mbarrien Michael Barrientos added a comment - Your build #371 snapshot worked for me.
          Hide
          francisu Francis Upton added a comment -

          Will be in 1.31 to be released shortly.

          Show
          francisu Francis Upton added a comment - Will be in 1.31 to be released shortly.
          Hide
          francisu Francis Upton added a comment -

          Just released 1.31, it should be available in the next day or so.

          Show
          francisu Francis Upton added a comment - Just released 1.31, it should be available in the next day or so.

            People

            • Assignee:
              francisu Francis Upton
              Reporter:
              mbarrien Michael Barrientos
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: