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

Build Flow jobs stuck waiting on next available executor when using label parameter to restrict job to vpshere slave

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      Testing Jenkins upgrade from 2.7.2 to 2.32.2 with installed plugins upgraded as well.

      We use a lot of flow jobs and post upgrade they don't work when combined with a label parameter with a value that isn't 'master' i.e. we can't get a flow job to run on a slave using the label parameter.

      1. As per screen shots, create a simple flow job with a single Label parameter
      2. Build the job with the label value of master and it works.
      3. Rebuild the job using a label for a connected slave that has free executors, the job permanently sits in the Build Queue - 'Waiting for next available executor'
      4. Alternatively, change the job configuration to no longer have a parameter but select 'Restrict where this project can be run' and set the slave name. Rebuild the job and same issue - sits in Build Queue.
      5. With the job sat in the Build Queue I can submit a separate 'free style project' also configured with a Label parameter for the same slave name and it completes ok.

      During the upgrade steps neither if the two obvious plugins were upgraded:

      • Node and Label parameter plugin still at 1.7.2
      • Build Flow plugin still at 0.20

      The Node and Label  parameter had dependencies that were upgraded, but reverting both, and using the Jenkins auto restart option from the plugin page, does not solve the issue.

      • parameterized-trigger Upgraded from 2.32 to 2.33
      • token-macro Upgraded from 1.12.1 to 2.0

      I'm about to restart the entire upgrade process again to try to narrow down which change causes this, but any advice/thoughts would be appreciated.

        Attachments

          Activity

          elliottjones Elliott Jones created issue -
          elliottjones Elliott Jones made changes -
          Field Original Value New Value
          Attachment Jenkins Issue.png [ 36315 ]
          elliottjones Elliott Jones made changes -
          Attachment Jenkins Issue.png [ 36316 ]
          elliottjones Elliott Jones made changes -
          Summary Build Flow jobs only work with slave label parameter when 'master' used otherwise permanently stuck waiting on next available executor Build Flow jobs stuck waiting on next available executor when using label parameter to restrict job to vpshere slave
          elliottjones Elliott Jones made changes -
          Priority Blocker [ 1 ] Minor [ 4 ]
          elliottjones Elliott Jones made changes -
          Environment Master:
          Jenkins ver. 2.32.2
          Windows Server 2012 R2 64 bit
          jre 1.8.0_121 64 bit
          Running Jenkins directly installed as windows service
          Installed Plugins

          ace-editor 1.1 true false
          ant 1.4 true false
          antisamy-markup-formatter 1.5 true false
          authentication-tokens 1.3 true false
          bouncycastle-api 2.16.0 true false
          branch-api 2.0.7 true false
          build-blocker-plugin 1.7.3 true false
          build-flow-plugin 0.20 true false
          build-name-setter 1.6.5 true false
          build-timeout 1.18 true false
          build-user-vars-plugin 1.5 true false
          buildgraph-view 1.5.1 true false
          buildresult-trigger 0.17 true false
          cloudbees-folder 5.18 true false
          compact-columns 1.10 true false
          conditional-buildstep 1.3.5 true false
          config-file-provider 2.15.6 true false
          credentials 2.1.13 true false
          credentials-binding 1.10 true false
          cvs 2.13 true false
          display-url-api 1.1.1 true false
          docker-commons 1.6 true false
          docker-workflow 1.10 true false
          durable-task 1.13 true false
          dynamicparameter 0.2.0 true false
          email-ext 2.57 true false
          envinject 1.93.1 true false
          extended-choice-parameter 0.76 true false
          extensible-choice-parameter 1.3.4 true false
          external-monitor-job 1.7 true false
          git 3.1.0 true false
          git-client 2.3.0 true false
          git-server 1.7 true false
          gradle 1.26 true false
          groovy 1.30 true false
          groovy-label-assignment 1.2.0 true false
          groovy-postbuild 2.3.1 true false
          handlebars 1.1.1 true false
          http_request 1.8.13 true false
          icon-shim 2.0.3 true false
          javadoc 1.4 true false
          jobConfigHistory 2.15 true false
          jquery 1.11.2-0 true false
          jquery-detached 1.2.1 true false
          junit 1.20 true false
          ldap 1.14 true false
          leastload 1.0.3 true false
          log-parser 2.0 true false
          mailer 1.19 true false
          mapdb-api 1.0.9.0 true false
          mask-passwords 2.9 true false
          matrix-auth 1.4 true false
          matrix-project 1.8 true false
          maven-plugin 2.15.1 true false
          momentjs 1.1.1 true false
          monitoring 1.63.0 true false
          node-iterator-api 1.5.0 true false
          nodelabelparameter 1.7.2 true false
          pam-auth 1.3 true false
          parameterized-trigger 2.33 true false
          pipeline-build-step 2.4 true false
          pipeline-graph-analysis 1.3 true false
          pipeline-input-step 2.5 true false
          pipeline-milestone-step 1.3 true false
          pipeline-model-api 1.0.2 true false
          pipeline-model-declarative-agent 1.0.2 true false
          pipeline-model-definition 1.0.2 true false
          pipeline-rest-api 2.5 true false
          pipeline-stage-step 2.2 true false
          pipeline-stage-tags-metadata 1.0.2 true false
          pipeline-stage-view 2.5 true false
          plain-credentials 1.4 true false
          promoted-builds 2.28.1 true false
          rebuild 1.25 true false
          repository-connector 1.1.3 true false
          resource-disposer 0.6 true false
          role-strategy 2.3.2 true false
          run-condition 1.0 true false
          scm-api 2.0.8 true false
          script-security 1.27 true false
          scriptler 2.9 true false
          simple-theme-plugin 0.3 true false
          sitemonitor 0.5 true false
          ssh-credentials 1.13 true false
          ssh-slaves 1.13 true false
          structs 1.6 true false
          subversion 2.7.1 true false
          testng-plugin 1.14 true false
          token-macro 2.0 true false
          translation 1.15 true false
          uno-choice 1.5.2 true false
          update-sites-manager 2.0.0 true false
          validating-string-parameter 2.3 true false
          view-job-filters 1.27 true false
          vsphere-cloud 2.15 true false
          windows-exe-runner 1.2 true false
          windows-slaves 1.2 true false
          workflow-aggregator 2.5 true false
          workflow-api 2.11 true false
          workflow-basic-steps 2.4 true false
          workflow-cps 2.29 true false
          workflow-cps-global-lib 2.7 true false
          workflow-durable-task-step 2.9 true false
          workflow-job 2.10 true false
          workflow-multibranch 2.13 true false
          workflow-scm-step 2.4 true false
          workflow-step-api 2.9 true false
          workflow-support 2.13 true false
          ws-cleanup 0.32 true false
          xunit 1.102 true false

          Slave
          Windows XP 32 bit
          Slave runs jenkins jar using jnlp launch
          jdk1.7.0_40
          Master:
          Jenkins ver. 2.32.2
          Windows Server 2012 R2 64 bit
          jre 1.8.0_121 64 bit
          Running Jenkins directly installed as windows service
          Installed Plugins

          ace-editor 1.1 true false
          ant 1.4 true false
          antisamy-markup-formatter 1.5 true false
          authentication-tokens 1.3 true false
          bouncycastle-api 2.16.0 true false
          branch-api 2.0.7 true false
          build-blocker-plugin 1.7.3 true false
          build-flow-plugin 0.20 true false
          build-name-setter 1.6.5 true false
          build-timeout 1.18 true false
          build-user-vars-plugin 1.5 true false
          buildgraph-view 1.5.1 true false
          buildresult-trigger 0.17 true false
          cloudbees-folder 5.18 true false
          compact-columns 1.10 true false
          conditional-buildstep 1.3.5 true false
          config-file-provider 2.15.6 true false
          credentials 2.1.13 true false
          credentials-binding 1.10 true false
          cvs 2.13 true false
          display-url-api 1.1.1 true false
          docker-commons 1.6 true false
          docker-workflow 1.10 true false
          durable-task 1.13 true false
          dynamicparameter 0.2.0 true false
          email-ext 2.57 true false
          envinject 1.93.1 true false
          extended-choice-parameter 0.76 true false
          extensible-choice-parameter 1.3.4 true false
          external-monitor-job 1.7 true false
          git 3.1.0 true false
          git-client 2.3.0 true false
          git-server 1.7 true false
          gradle 1.26 true false
          groovy 1.30 true false
          groovy-label-assignment 1.2.0 true false
          groovy-postbuild 2.3.1 true false
          handlebars 1.1.1 true false
          http_request 1.8.13 true false
          icon-shim 2.0.3 true false
          javadoc 1.4 true false
          jobConfigHistory 2.15 true false
          jquery 1.11.2-0 true false
          jquery-detached 1.2.1 true false
          junit 1.20 true false
          ldap 1.14 true false
          leastload 1.0.3 true false
          log-parser 2.0 true false
          mailer 1.19 true false
          mapdb-api 1.0.9.0 true false
          mask-passwords 2.9 true false
          matrix-auth 1.4 true false
          matrix-project 1.8 true false
          maven-plugin 2.15.1 true false
          momentjs 1.1.1 true false
          monitoring 1.63.0 true false
          node-iterator-api 1.5.0 true false
          nodelabelparameter 1.7.2 true false
          pam-auth 1.3 true false
          parameterized-trigger 2.33 true false
          pipeline-build-step 2.4 true false
          pipeline-graph-analysis 1.3 true false
          pipeline-input-step 2.5 true false
          pipeline-milestone-step 1.3 true false
          pipeline-model-api 1.0.2 true false
          pipeline-model-declarative-agent 1.0.2 true false
          pipeline-model-definition 1.0.2 true false
          pipeline-rest-api 2.5 true false
          pipeline-stage-step 2.2 true false
          pipeline-stage-tags-metadata 1.0.2 true false
          pipeline-stage-view 2.5 true false
          plain-credentials 1.4 true false
          promoted-builds 2.28.1 true false
          rebuild 1.25 true false
          repository-connector 1.1.3 true false
          resource-disposer 0.6 true false
          role-strategy 2.3.2 true false
          run-condition 1.0 true false
          scm-api 2.0.8 true false
          script-security 1.27 true false
          scriptler 2.9 true false
          simple-theme-plugin 0.3 true false
          sitemonitor 0.5 true false
          ssh-credentials 1.13 true false
          ssh-slaves 1.13 true false
          structs 1.6 true false
          subversion 2.7.1 true false
          testng-plugin 1.14 true false
          token-macro 2.0 true false
          translation 1.15 true false
          uno-choice 1.5.2 true false
          update-sites-manager 2.0.0 true false
          validating-string-parameter 2.3 true false
          view-job-filters 1.27 true false
          vsphere-cloud 2.15 true false
          windows-exe-runner 1.2 true false
          windows-slaves 1.2 true false
          workflow-aggregator 2.5 true false
          workflow-api 2.11 true false
          workflow-basic-steps 2.4 true false
          workflow-cps 2.29 true false
          workflow-cps-global-lib 2.7 true false
          workflow-durable-task-step 2.9 true false
          workflow-job 2.10 true false
          workflow-multibranch 2.13 true false
          workflow-scm-step 2.4 true false
          workflow-step-api 2.9 true false
          workflow-support 2.13 true false
          ws-cleanup 0.32 true false
          xunit 1.102 true false

          Slave
          vpshere slave
          Windows XP 32 bit
          Slave runs jenkins jar using jnlp launch
          jdk1.7.0_40
          elliottjones Elliott Jones made changes -
          Component/s vsphere-cloud-plugin [ 16104 ]
          rodrigc Craig Rodrigues made changes -
          Assignee Craig Rodrigues [ rodrigc ]

            People

            • Assignee:
              Unassigned
              Reporter:
              elliottjones Elliott Jones
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: