[JIRA] (JENKINS-56885) It is possible to save a Node without host configuration

3 views
Skip to first unread message

kuisathaverat@gmail.com (JIRA)

unread,
Apr 5, 2019, 10:17:02 AM4/5/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
 
Jenkins / Bug JENKINS-56885
It is possible to save a Node without host configuration
Change By: Ivan Fernandez Calvo
Summary: hostnameMatches -> NullPointerException It is possible to save a Node without host configuration
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

kuisathaverat@gmail.com (JIRA)

unread,
Apr 5, 2019, 10:19:02 AM4/5/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo commented on Bug JENKINS-56885
 
Re: It is possible to save a Node without host configuration

you have to put there the DNS name or IP of the machine you want to use as Agent, it should not be the master name or IP because you already have some executors on the master configured by default thus put the master as Agent does not have any sense.

kuisathaverat@gmail.com (JIRA)

unread,
Apr 5, 2019, 10:25:02 AM4/5/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
1) If you do not set the host field in the Node configuration it is possible to save it, then when it tries to connect fails with an NPE
| |Host Key Verification Strategy| Known hosts for Verification Strategy|
!Screenshot from 2019-04-05 13-00-24.png!
 
Agent connection log

{code}
ERROR: Unexpected error in launching a agent. This is probably a bug in Jenkins.
java.lang.NullPointerException
at com.trilead.ssh2.KnownHosts.hostnameMatches(KnownHosts.java:313)
at com.trilead.ssh2.KnownHosts.getAllKnownHostEntries(KnownHosts.java:260)
at com.trilead.ssh2.KnownHosts.recommendHostkeyAlgorithms(KnownHosts.java:504)
at com.trilead.ssh2.KnownHosts.getPreferredServerHostkeyAlgorithmOrder(KnownHosts.java:282)
at hudson.plugins.sshslaves.verifiers.KnownHostsFileKeyVerificationStrategy.getPreferredKeyAlgorithms(KnownHostsFileKeyVerificationStrategy.java:92)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:837)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:833)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
[04/04/19 15:40:41] Launch failed - cleaning up connection
{code}
2)  
| |Host Key Verification Strategy| Non verifying Verification Strategy|

 

[SSH] Opening SSH connection to null:22.

 

EDIT 05-04-2019

-----------------------------

*Config.xml*

{code}
<?xml version='1.1' encoding='UTF-8'?>
<slave>
   <name>
slave01 agentNullHost </name>
   <description>
Slave for building and packaging (the delivery) agent description </description>
   <remoteFS>/home/
userName/jenkins_slave_node jenkins </remoteFS>
   <numExecutors>1</numExecutors>
   <mode>NORMAL</mode>
   <retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
    <launcher class="hudson.plugins.sshslaves.SSHLauncher" plugin="ssh-s...@1.29.4">
       <port>22</port>
       <credentialsId>
xxxxxxxx my - xxxx-xxxx-8dd0-f9d5a90c058d credentials </credentialsId>
       <launchTimeoutSeconds>210</launchTimeoutSeconds>
       <maxNumRetries>10</maxNumRetries>
       <retryWaitTime>15</retryWaitTime>
       <sshHostKeyVerificationStrategy class="hudson.plugins.sshslaves.verifiers.NonVerifyingKeyVerificationStrategy"/>
       <tcpNoDelay>true</tcpNoDelay>
  </launcher>
  <label>
deliver packaging customer_release linux </label>
  <nodeProperties/>
</slave>

{code}

begood@mailbox.org (JIRA)

unread,
Apr 5, 2019, 11:11:02 AM4/5/19
to jenkinsc...@googlegroups.com
Hao Maio commented on Bug JENKINS-56885
 
Re: It is possible to save a Node without host configuration

Ivan Fernandez Calvo: could you please give me any hint, of where I can read more about, what || how to choose the host ip ?

 

kuisathaverat@gmail.com (JIRA)

unread,
Apr 5, 2019, 2:35:01 PM4/5/19
to jenkinsc...@googlegroups.com

kuisathaverat@gmail.com (JIRA)

unread,
Apr 7, 2019, 6:59:02 AM4/7/19
to jenkinsc...@googlegroups.com
Status: Open In Progress

kuisathaverat@gmail.com (JIRA)

unread,
Apr 7, 2019, 9:15:04 AM4/7/19
to jenkinsc...@googlegroups.com

kuisathaverat@gmail.com (JIRA)

unread,
Apr 7, 2019, 9:20:02 AM4/7/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
Attachment: Screenshot 2019-04-07 at 14.41.02.png

kuisathaverat@gmail.com (JIRA)

unread,
Apr 7, 2019, 9:20:02 AM4/7/19
to jenkinsc...@googlegroups.com
Ivan Fernandez Calvo updated an issue
Attachment: Screenshot 2019-04-07 at 14.41.35.png

kuisathaverat@gmail.com (JIRA)

unread,
Apr 7, 2019, 9:23:01 AM4/7/19
to jenkinsc...@googlegroups.com
 
Re: It is possible to save a Node without host configuration

1.30 version will protect against those pitfalls

kuisathaverat@gmail.com (JIRA)

unread,
Apr 7, 2019, 9:23:02 AM4/7/19
to jenkinsc...@googlegroups.com
1.30 version will protect against those pitfalls   

!Screenshot 2019-04-07 at 14.41.02.png |width=500px !

!Screenshot 2019-04-07 at 14.41.35.png
|width=500px !  

begood@mailbox.org (JIRA)

unread,
Apr 8, 2019, 10:46:02 AM4/8/19
to jenkinsc...@googlegroups.com
Hao Maio updated an issue
 
Change By: Hao Maio
Attachment: Screenshot from 2019-04-08 16-45-27.png

begood@mailbox.org (JIRA)

unread,
Apr 8, 2019, 11:02:02 AM4/8/19
to jenkinsc...@googlegroups.com
Hao Maio commented on Bug JENKINS-56885
 
Re: It is possible to save a Node without host configuration

Ivan Fernandez Calvo: Unfortunately the documentation doesnt say anything about the host:

https://jenkins.io/doc/book/managing/nodes/

 

Maybe you have another hint?

kuisathaverat@gmail.com (JIRA)

unread,
Apr 8, 2019, 11:32:02 AM4/8/19
to jenkinsc...@googlegroups.com

Jira is not a support site see https://wiki.jenkins.io/display/JENKINS/How+to+report+an+issue
BTW, the host setting is a hostname or an IP address of a host you want to use as an agent to execute jobs in it, does not have too much complication or too much to understand.

kuisathaverat@gmail.com (JIRA)

unread,
Apr 16, 2019, 4:42:02 AM4/16/19
to jenkinsc...@googlegroups.com

kuisathaverat@gmail.com (JIRA)

unread,
Feb 1, 2020, 12:09:02 PM2/1/20
to jenkinsc...@googlegroups.com
Status: Fixed but Unreleased Resolved
Released As: ssh-slaves-1.30.0
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages