[JIRA] (JENKINS-37989) NPE when deleting a leftover shared node

0 views
Skip to first unread message

scoheb@gmail.com (JIRA)

unread,
Sep 6, 2016, 10:49:01 AM9/6/16
to jenkinsc...@googlegroups.com
Scott Hebert created an issue
 
Jenkins / Bug JENKINS-37989
NPE when deleting a leftover shared node
Issue Type: Bug Bug
Assignee: Scott Hebert
Components: foreman-node-sharing-plugin
Created: 2016/Sep/06 2:48 PM
Priority: Minor Minor
Reporter: Scott Hebert

Caused by: java.lang.IllegalArgumentException: null is not an Foreman Shared Node cloud: null
at com.redhat.foreman.ForemanSharedNodeCloud.getByName(ForemanSharedNodeCloud.java:303)
at com.redhat.foreman.ForemanSharedNode.terminate(ForemanSharedNode.java:29)
at hudson.slaves.AbstractCloudComputer.doDoDelete(AbstractCloudComputer.java:61)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:324)
at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:52)
at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:167)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:100)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:124)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

scoheb@gmail.com (JIRA)

unread,
Sep 6, 2016, 11:39:01 AM9/6/16
to jenkinsc...@googlegroups.com
Scott Hebert started work on Bug JENKINS-37989
 
Change By: Scott Hebert
Status: Open In Progress

scm_issue_link@java.net (JIRA)

unread,
Sep 6, 2016, 11:51:02 AM9/6/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-37989
 
Re: NPE when deleting a leftover shared node

Code changed in jenkins
User: Scott Hebert
Path:
src/main/java/com/redhat/foreman/ForemanComputer.java
src/main/java/com/redhat/foreman/ForemanComputerListener.java
src/main/java/com/redhat/foreman/ForemanSharedNode.java
src/main/java/com/redhat/foreman/ForemanSharedNodeCloud.java
http://jenkins-ci.org/commit/foreman-node-sharing-plugin/84b925fed0ea701fb18306a318a107ad40334ec2
Log:
Allow termination to complete even if release not possible

  • If cloudname is not defined, we can never release node
    and therefore can never terminate node.
  • This allows the termination to continue.

[FIXED JENKINS-37989]

scm_issue_link@java.net (JIRA)

unread,
Sep 6, 2016, 11:51:03 AM9/6/16
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon resolved as Fixed
 
Change By: SCM/JIRA link daemon
Status: In Progress Resolved
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages