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

Exclusion plugin sometimes reports a resource as locked when it is not. Jobs hang as a result.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: exclusion-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.477, Jenkins 1.486
    • Similar Issues:

      Description

      I'm trying to use this plugin to manage a resource lock.

      I configure a multiconf task by node (maybe it's vital) like this:
      critical start
      execute shell: sleep 5
      critical end

      The resource doesn't get deallocated albeit claimed so:

      Started by upstream project "test" build number 16
      Building remotely on autotest in workspace /home/hudson/workspace/test/node/autotest
      [Exclusion] -> Allocating resource : AT
      [Exclusion] -> Assigned AT
      [Exclusion] -> Resource allocation complete
      [autotest] $ /bin/sh -xe /tmp/hudson1930327396414066431.sh
      + sleep 5
      [Exclusion] -> Releasing all the resources
      Finished: SUCCESS

      On the other host:

      Started by upstream project "test" build number 16
      Building remotely on aix_53_dev in workspace /build/hudson/workspace/test/node/aix_53_dev
      [Exclusion] -> Allocating resource : AT
      Waiting ressource : AT currently use by : test ยป autotest #16
      Build was aborted
      Aborted by Yury Pukhalsky
      Finished: ABORTED

      (Abort was mine after about two minutes.

      Likewise resources are not release after the task finishes, like it's stated in the doc.

      In the exclusion administration:
      I don't see the state of the resource
      There's nothing in the droplist, so i cannot release the resource with the button.

        Attachments

          Activity

          Hide
          mwebber Matthew Webber added a comment -

          I have exactly the same two problems:
          (1) Job 1 job will do "critical block start", run a build step, and do "critical block end". Job 1 finishes.
          Later, Job 2 will hang on "critical block start", reporting that Job 1 still has the resource, even though JOb 1 is no longer running.
          (2) If I go to the "Exclusion Administration" panel, it says that no job has the resource, so there is no option to release it.

          This happens intermittently, not all the time.

          I am changing the problem summaru to make it clearer.

          Show
          mwebber Matthew Webber added a comment - I have exactly the same two problems: (1) Job 1 job will do "critical block start", run a build step, and do "critical block end". Job 1 finishes. Later, Job 2 will hang on "critical block start", reporting that Job 1 still has the resource, even though JOb 1 is no longer running. (2) If I go to the "Exclusion Administration" panel, it says that no job has the resource, so there is no option to release it. This happens intermittently, not all the time. I am changing the problem summaru to make it clearer.
          Hide
          mwebber Matthew Webber added a comment -

          Assigning to the plugin maintainer as listed at https://wiki.jenkins-ci.org/display/JENKINS/Exclusion-Plugin

          Show
          mwebber Matthew Webber added a comment - Assigning to the plugin maintainer as listed at https://wiki.jenkins-ci.org/display/JENKINS/Exclusion-Plugin
          Hide
          anthonyroux Anthony Roux added a comment -

          Development has been done I will release as soon as I have time.

          Show
          anthonyroux Anthony Roux added a comment - Development has been done I will release as soon as I have time.
          Hide
          mwebber Matthew Webber added a comment -

          Excellent, I look forward to it. This is the only plugin I know of that allows locking between jobs at the level of the individual step, so I find it very useful.

          Show
          mwebber Matthew Webber added a comment - Excellent, I look forward to it. This is the only plugin I know of that allows locking between jobs at the level of the individual step, so I find it very useful.
          Hide
          aikipooh Yury Pukhalsky added a comment -

          Can you please clear the situation with the tickets?
          The ticket was neglected until mwebber had reassigned it to the maintainer. Heretofore i thought that specifying the plugin should be enough, the maintainers get the feed on their respective plugin bugs. Was i wrong?

          Show
          aikipooh Yury Pukhalsky added a comment - Can you please clear the situation with the tickets? The ticket was neglected until mwebber had reassigned it to the maintainer. Heretofore i thought that specifying the plugin should be enough, the maintainers get the feed on their respective plugin bugs. Was i wrong?
          Hide
          anthonyroux Anthony Roux added a comment -

          Exclusion 0.8 released.

          Show
          anthonyroux Anthony Roux added a comment - Exclusion 0.8 released.

            People

            Assignee:
            anthonyroux Anthony Roux
            Reporter:
            aikipooh Yury Pukhalsky
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: