[JIRA] (JENKINS-57967) vSphere Cloud: java.lang.NoSuchMethodError in SSHLauncher

10 views
Skip to first unread message

medianick@gmail.com (JIRA)

unread,
Jun 11, 2019, 12:52:03 PM6/11/19
to jenkinsc...@googlegroups.com
Nick Jones created an issue
 
Jenkins / Bug JENKINS-57967
vSphere Cloud: java.lang.NoSuchMethodError in SSHLauncher
Issue Type: Bug Bug
Assignee: Unassigned
Components: vsphere-cloud-plugin
Created: 2019-06-11 16:51
Environment: vSphere Cloud 2.19, SSH Slaves 1.30.0
Priority: Blocker Blocker
Reporter: Nick Jones

Having upgraded to SSH Slaves 1.30, our vSphere Cloud plugin no longer works – agent nodes fail to provision, and a message like the following gets logged:

Unexpected exception encountered while provisioning agent agent1
java.lang.NoSuchMethodError: hudson.plugins.sshslaves.SSHLauncher.<init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
	at org.jenkinsci.plugins.vSphereCloudSlaveTemplate.determineLauncher(vSphereCloudSlaveTemplate.java:481)
	at org.jenkinsci.plugins.vSphereCloudSlaveTemplate.provision(vSphereCloudSlaveTemplate.java:451)
	at org.jenkinsci.plugins.vSphereCloudSlaveTemplate.provision(vSphereCloudSlaveTemplate.java:396)
	at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode.provisionNewNode(vSphereCloud.java:534)
	at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode.access$100(vSphereCloud.java:496)
	at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode$1.call(vSphereCloud.java:510)
	at org.jenkinsci.plugins.vSphereCloud$VSpherePlannedNode$1.call(vSphereCloud.java:506)
	at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
	at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
	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)
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

medianick@gmail.com (JIRA)

unread,
Jun 11, 2019, 12:53:02 PM6/11/19
to jenkinsc...@googlegroups.com
Nick Jones updated an issue
Change By: Nick Jones
Component/s: ssh-slaves-plugin

medianick@gmail.com (JIRA)

unread,
Jun 21, 2019, 9:53:02 AM6/21/19
to jenkinsc...@googlegroups.com
Nick Jones commented on Bug JENKINS-57967
 
Re: vSphere Cloud: java.lang.NoSuchMethodError in SSHLauncher

Looking at https://github.com/jenkinsci/vsphere-cloud-plugin/blob/6aee348fbe3a6c046383a2749de7b22c59152252/src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java#L477-L481 and https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java#L249-L251, and when the signature of this SSHLauncher constructor was last changed, I'm not sure how this ever worked, as it looks to be missing an argument for the sshHostKeyVerificationStrategy parameter{{. Not sure what to do to fix?}}

medianick@gmail.com (JIRA)

unread,
Jun 21, 2019, 9:54:02 AM6/21/19
to jenkinsc...@googlegroups.com
Nick Jones edited a comment on Bug JENKINS-57967
Looking at [https://github.com/jenkinsci/vsphere-cloud-plugin/blob/6aee348fbe3a6c046383a2749de7b22c59152252/src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java#L477-L481] and [https://github.com/jenkinsci/ssh-slaves-plugin/blob/master/src/main/java/hudson/plugins/sshslaves/SSHLauncher.java#L249-L251], and when the signature of this SSHLauncher constructor was last changed, I'm not sure how this ever worked, as it looks to be missing an argument for the {{sshHostKeyVerificationStrategy}} parameter {{ . Not sure what to do to fix? }}

gimpel@ferrari-electronic.de (JIRA)

unread,
Jun 21, 2019, 10:15:02 AM6/21/19
to jenkinsc...@googlegroups.com

In our Jenkins installation even all statically configured SSH slaves are broken after the update to 1.3.0 of the SSH Slaves plugin. The plugin changelog has note about breaking changes, but gives no hint, how to get the SSH slaves working again. We had to restore version 1.29.4 from the backup (the plugin manager failed to that).

medianick@gmail.com (JIRA)

unread,
Jun 26, 2019, 2:31:04 PM6/26/19
to jenkinsc...@googlegroups.com

Ah, I see the issue. The SSHLauncher constructor used by vSphereCloudSlaveTemplate.java is what was removed in https://github.com/jenkinsci/ssh-slaves-plugin/pull/114/commits/471fcbea57429022e457c723923a40a5519a2f1e#diff-80fc627a638d10d5056a52e20a13d8cb. That means we'll need a new build of the vSphere Cloud plugin that uses the remaining constructor (adding a SshHostKeyVerificationStrategy argument).

medianick@gmail.com (JIRA)

unread,
Jun 26, 2019, 3:34:02 PM6/26/19
to jenkinsc...@googlegroups.com

medianick@gmail.com (JIRA)

unread,
Jul 9, 2019, 8:50:04 AM7/9/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages