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

SSH connection fails in vShpere cloud plugin with new version of SSH slaves plugin (1.27)

    XMLWordPrintable

Details

    • ssh-slaves-1.28.1

    Description

      SSH slaves plugin has been updated to 1.27. When I try to run a slave with vsphere cloud I get the following error:

      // Jenkins log
      java.lang.NoSuchMethodError: hudson.plugins.sshslaves.SSHLauncher.getJavaPath()Ljava/lang/String;
       at org.jenkinsci.plugins.vSphereCloudSlaveTemplate.determineLauncher(vSphereCloudSlaveTemplate.java:478)
       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)
      

      The method getJavaPath() has been removed from the new version of SSH slaves plugin, but the vSphere cloud plugin still tries to use it.

      My workaround for the problem: downgrade SSH slaves plugin version to 1.26

      Attachments

        Activity

          orsoly Orsolya Kiss created issue -
          oleg_nenashev Oleg Nenashev made changes -
          Field Original Value New Value
          Labels ssh-slave vsphere regression ssh-slave vsphere
          roberthencke Robert Hencke made changes -
          Component/s ssh-slaves-plugin [ 15578 ]
          ifernandezcalvo Ivan Fernandez Calvo made changes -
          Assignee Ivan Fernandez Calvo [ ifernandezcalvo ]
          ifernandezcalvo Ivan Fernandez Calvo made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          ifernandezcalvo Ivan Fernandez Calvo made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          ifernandezcalvo Ivan Fernandez Calvo made changes -
          Released As ssh-slaves-1.28.1
          Resolution Fixed [ 1 ]
          Status In Review [ 10005 ] Resolved [ 5 ]

          People

            ifernandezcalvo Ivan Fernandez Calvo
            orsoly Orsolya Kiss
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: