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

NoopExternalResourceManager fails to timeout reservations of resources on the master build node

    Details

    • Similar Issues:

      Description

      The following error appears in the server log when I use the Noop manager and reserve resource 1234 on node "master" (the central Jenkins build node):

      WARNING: Failed to timeout a reservation of 1234 on node !
      org.kohsuke.args4j.CmdLineException: No node with name exists on this Jenkins server.
      at com.sonyericsson.jenkins.plugins.externalresource.dispatcher.cli.ErCliUtils.findExternalResource(ErCliUtils.java:63)
      at com.sonyericsson.jenkins.plugins.externalresource.dispatcher.utils.resourcemanagers.NoopExternalResourceManager$ReservationTimeoutTask.run(NoopExternalResourceManager.ja
      va:113)
      at java.util.TimerThread.mainLoop(Unknown Source)
      at java.util.TimerThread.run(Unknown Source)

      ←[0mapr 03, 2013 10:02:50 FM hudson.model.Run execute

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: arleyristar
          Path:
          src/main/java/com/sonyericsson/jenkins/plugins/externalresource/dispatcher/cli/ErCliUtils.java
          src/test/java/com/sonyericsson/jenkins/plugins/externalresource/dispatcher/utils/NoopExternalResourceManagerJenkinsTest.java
          http://jenkins-ci.org/commit/external-resource-dispatcher-plugin/4686f2e8dabae23b29fd7f0bcd9e1f984dc55ead
          Log:
          Fixing reservation in master.
          Related to the Issue JENKINS-17444.
          Added a Test Case too.
          "WARNING: Failed to timeout a reservation of 1234 on node !" was caused
          by trying to access the master node with his name.
          getNodeName() in master, returns "" and cannot be found with
          Hudson.getInstance().getNode(nodeName);

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: arleyristar Path: src/main/java/com/sonyericsson/jenkins/plugins/externalresource/dispatcher/cli/ErCliUtils.java src/test/java/com/sonyericsson/jenkins/plugins/externalresource/dispatcher/utils/NoopExternalResourceManagerJenkinsTest.java http://jenkins-ci.org/commit/external-resource-dispatcher-plugin/4686f2e8dabae23b29fd7f0bcd9e1f984dc55ead Log: Fixing reservation in master. Related to the Issue JENKINS-17444 . Added a Test Case too. "WARNING: Failed to timeout a reservation of 1234 on node !" was caused by trying to access the master node with his name. getNodeName() in master, returns "" and cannot be found with Hudson.getInstance().getNode(nodeName);

            People

            • Assignee:
              rsandell rsandell
              Reporter:
              patrik Patrik Johansson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: