• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core

      In a cloud-enabled environment where Hudson has zero static executors, there will be no Computer object until a node is provisioned, so even a fly-weight job would wait for an allocation of a node.

      (And IIRC, I also saw that the flyweight job still used up a regular executor.)

      Needs more analysis.

          [JENKINS-7291] Flyweight jobs and zero executors

          Kohsuke Kawaguchi created issue -

          Ryan Campbell added a comment -

          It would be nice if one could allow flyweight tasks on master even when no executors are configured.

          Ryan Campbell added a comment - It would be nice if one could allow flyweight tasks on master even when no executors are configured.
          Jesse Glick made changes -
          Assignee New: Jesse Glick [ jglick ]

          Jesse Glick added a comment -

          Using nectar-vmware on an instance with zero master executors and a cloud configured to provide one executor in a cloud slave on demand, I made a matrix job with a slave axis with one value corresponding to the cloud label. When I asked to start it, the cloud slave was in fact spun up, but the one executor was consumed by the matrix build (with nothing left over for the configuration build):

          Building remotely on VM5-stuff-ubuntu1 in workspace …
          Triggering vmware
          Configuration vmware is still in the queue: Waiting for next available executor on VM5-stuff-ubuntu1
          …later…
          Configuration vmware is still in the queue: VM5-stuff-ubuntu1 is offline
          Aborted
          Cancelled vmware
          

          Jesse Glick added a comment - Using nectar-vmware on an instance with zero master executors and a cloud configured to provide one executor in a cloud slave on demand, I made a matrix job with a slave axis with one value corresponding to the cloud label. When I asked to start it, the cloud slave was in fact spun up, but the one executor was consumed by the matrix build (with nothing left over for the configuration build): Building remotely on VM5-stuff-ubuntu1 in workspace … Triggering vmware Configuration vmware is still in the queue: Waiting for next available executor on VM5-stuff-ubuntu1 …later… Configuration vmware is still in the queue: VM5-stuff-ubuntu1 is offline Aborted Cancelled vmware
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-17276 [ JENKINS-17276 ]

          Code changed in jenkins
          User: Jesse Glick
          Path:
          core/src/main/java/hudson/model/Queue.java
          http://jenkins-ci.org/commit/jenkins/7e74ab6a6479ec1ee7564663d080f276996930c5
          Log:
          [FIXED JENKINS-7291] Permit flyweight tasks to run on master even when it has zero configured executors.


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: core/src/main/java/hudson/model/Queue.java http://jenkins-ci.org/commit/jenkins/7e74ab6a6479ec1ee7564663d080f276996930c5 Log: [FIXED JENKINS-7291] Permit flyweight tasks to run on master even when it has zero configured executors. – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Jesse Glick made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Jesse Glick made changes -
          Status Original: Reopened [ 4 ] New: Open [ 1 ]

            jglick Jesse Glick
            kohsuke Kohsuke Kawaguchi
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: