[JIRA] (JENKINS-37617) space in Host address cauese unknown/connection error

1 view
Skip to first unread message

kjozef@gmail.com (JIRA)

unread,
Aug 23, 2016, 6:04:01 AM8/23/16
to jenkinsc...@googlegroups.com
Paul Walter created an issue
 
Jenkins / Bug JENKINS-37617
space in Host address cauese unknown/connection error
Issue Type: Bug Bug
Assignee: Giuseppe Landolfi
Components: slave-setup-plugin
Created: 2016/Aug/23 10:03 AM
Priority: Major Major
Reporter: Paul Walter

If Host address has a space in entry ( <space>ip or ip<space> in Host text fileld ), no connection is established and following error is visible in console.

Any spaces in front or at the end of Host address should be removed while slave setup is saved, check for invalid chars in node address should be performed.

Log from console:

[08/23/16 11:58:43] [SSH] Opening SSH connection to <space><host>

<space><host>: unknown error
ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins.
java.lang.IllegalStateException: Connection is not established!
at com.trilead.ssh2.Connection.getRemainingAuthMethods(Connection.java:1030)
at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.getRemainingAuthMethods(TrileadSSHPublicKeyAuthenticator.java:88)
at com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPublicKeyAuthenticator.canAuthenticate(TrileadSSHPublicKeyAuthenticator.java:80)
at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:212)
at com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.newInstance(SSHAuthenticator.java:172)
at hudson.plugins.sshslaves.SSHLauncher.openConnection(SSHLauncher.java:1212)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:711)
at hudson.plugins.sshslaves.SSHLauncher$2.call(SSHLauncher.java:706)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[08/23/16 11:58:55] Launch failed - cleaning up connection
[08/23/16 11:58:55] [SSH] Connection closed.

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

giuseppe.landolfi@gmail.com (JIRA)

unread,
Aug 23, 2016, 6:13:01 AM8/23/16
to jenkinsc...@googlegroups.com
Giuseppe Landolfi updated an issue
Change By: Giuseppe Landolfi
Component/s: ssh-slaves-plugin
Component/s: slave-setup-plugin

giuseppe.landolfi@gmail.com (JIRA)

unread,
Aug 23, 2016, 6:13:02 AM8/23/16
to jenkinsc...@googlegroups.com

giuseppe.landolfi@gmail.com (JIRA)

unread,
Aug 23, 2016, 6:13:02 AM8/23/16
to jenkinsc...@googlegroups.com
Giuseppe Landolfi commented on Bug JENKINS-37617
 
Re: space in Host address cauese unknown/connection error

The right place for this item would be the SSH slaves plugin, which is the guy who does the connection.

If I may also add a comment, to me this seems like a misconfiguration of the slave. Probably a frequent one, but still a misconfiguration.
So, personally, I see this more as an improvement rather than a bug...

Regards

giuseppe.landolfi@gmail.com (JIRA)

unread,
Aug 23, 2016, 6:13:04 AM8/23/16
to jenkinsc...@googlegroups.com
Giuseppe Landolfi assigned an issue to Kohsuke Kawaguchi
 
Change By: Giuseppe Landolfi
Assignee: Giuseppe Landolfi Kohsuke Kawaguchi

kjozef@gmail.com (JIRA)

unread,
Dec 19, 2016, 6:13:01 AM12/19/16
to jenkinsc...@googlegroups.com
Paul Walter updated an issue
 
Jenkins / Improvement JENKINS-37617
Change By: Paul Walter
Issue Type: Bug Improvement

kuisathaverat@gmail.com (JIRA)

unread,
Aug 1, 2018, 11:33:01 AM8/1/18
to jenkinsc...@googlegroups.com
Change By: Ivan Fernandez Calvo
Assignee: Kohsuke Kawaguchi Ivan Fernandez Calvo
This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)

kuisathaverat@gmail.com (JIRA)

unread,
Aug 1, 2018, 11:34:02 AM8/1/18
to jenkinsc...@googlegroups.com

kuisathaverat@gmail.com (JIRA)

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