[JIRA] [libvirt-slave-plugin] (JENKINS-30691) Unable to connect to remote server

18 views
Skip to first unread message

puriadeb@yahoo.com (JIRA)

unread,
Sep 29, 2015, 6:20:02 AM9/29/15
to jenkinsc...@googlegroups.com
Debashis Prusty created an issue
 
Jenkins / Bug JENKINS-30691
Unable to connect to remote server
Issue Type: Bug Bug
Assignee: Philipp Bartsch
Components: libvirt-slave-plugin, libvirtslave
Created: 29/Sep/15 10:19 AM
Environment: At the VM host:
libvirt-1.2.8-16.el7_1.4.x86_64
systemd-208-20.el7_1.6.x86_64

at Jenkins host:
libvirt 1.2.8
systemd 208
libvirt-0.4.7.jar
Priority: Minor Minor
Reporter: Debashis Prusty

While configuring if do not select "Use Native Java libvirt client" then, then during testing the connection I am getting the below error.
org.libvirt.LibvirtException: Cannot recv data: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). : Connection reset by peer

At the same time the daemon prints no messages (/var/log/messages at host).

But if "Use Native Java libvirt client" is selected then, I could see messages like below at the host.

Sep 29 15:20:01 XXX systemd: Starting Session 12256 of user root.
Sep 29 15:20:01 XXX systemd: Started Session 12256 of user root.
Sep 29 15:20:01 XXX systemd: Failed to reset devices.list on /machine.slice: Invalid argument

But in Jenkins, I am getting the error "java.lang.reflect.UndeclaredThrowableException".
Sep 29, 2015 3:24:45 PM net.schmizz.sshj.transport.TransportImpl init
INFO: Client identity string: SSH-2.0-SSHJ_0_9_0
Sep 29, 2015 3:24:45 PM net.schmizz.sshj.transport.TransportImpl init
INFO: Server identity string: SSH-2.0-OpenSSH_6.6.1
Sep 29, 2015 3:24:46 PM net.schmizz.sshj.connection.channel.direct.SessionChannel exec
INFO: Will request to exec `netcat -U /var/run/libvirt/libvirt-sock`
Sep 29, 2015 3:24:46 PM com.nirima.libvirt.xdr.XDRInvocationHandler invoke
INFO: Invoking connectOpen
Sep 29, 2015 3:24:46 PM hudson.plugins.libvirt.Hypervisor$DescriptorImpl doTestConnection
WARNING: Failed to check hypervisor connection to 10.43.16.25 as root/******
hudson.plugins.libvirt.lib.VirtException: java.lang.reflect.UndeclaredThrowableException
at hudson.plugins.libvirt.lib.jlibvirt.JLibVirtConnectImpl.<init>(JLibVirtConnectImpl.java:27)
at hudson.plugins.libvirt.lib.ConnectionBuilder.build(ConnectionBuilder.java:87)
at hudson.plugins.libvirt.Hypervisor$DescriptorImpl.doTestConnection(Hypervisor.java:455)
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:483)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

puriadeb@yahoo.com (JIRA)

unread,
Sep 29, 2015, 6:23:01 AM9/29/15
to jenkinsc...@googlegroups.com
Debashis Prusty updated an issue
Change By: Debashis Prusty
Priority: Minor Major
I am able to do a "virsh connect qemu+ssh:" command line and is able to get console.

gkr@gkr.i24.cc (JIRA)

unread,
Oct 5, 2015, 6:09:02 PM10/5/15
to jenkinsc...@googlegroups.com
G. Kr. assigned an issue to G. Kr.
Change By: G. Kr.
Assignee: Philipp Bartsch G. Kr.

gkr@gkr.i24.cc (JIRA)

unread,
Oct 5, 2015, 6:22:01 PM10/5/15
to jenkinsc...@googlegroups.com
G. Kr. commented on Bug JENKINS-30691
 
Re: Unable to connect to remote server

please provide more configuration details
jenkins and plugin versions, credentials type used (i.e. user+password or ssh key)
also please test plain ssh connection and paste debug output (ssh -v ...), make sure you are testing as the jenkins user

thanks

puriadeb@yahoo.com (JIRA)

unread,
Oct 6, 2015, 4:53:02 AM10/6/15
to jenkinsc...@googlegroups.com

As I mentioned earlier, ssh is working fine(see output below). After adding the key to store, the plugin started working. I think this should be documented or else plugin should be enhanced to accept external passwords.

vagrant@webdev:~$ virsh -c qemu+ssh://ro...@X.X.X.X/system list --all
ro...@X.X.X.X's password:
Id Name State
----------------------------------
406 laa_6wind running

  • 6wind shut off
  • generic-app shut off

vagrant@webdev:~$

gkr@gkr.i24.cc (JIRA)

unread,
Oct 6, 2015, 5:19:05 PM10/6/15
to jenkinsc...@googlegroups.com
G. Kr. commented on Bug JENKINS-30691

can you make a suggestion were should what exactly be documented ?
when you configure the cloud you also need to configure credentials, is that too hidden away in the UI? also what do you mean with accepting external passwords ?

gkr@gkr.i24.cc (JIRA)

unread,
Oct 6, 2015, 5:20:01 PM10/6/15
to jenkinsc...@googlegroups.com
G. Kr. resolved as Not A Defect
 

marking resolved

Change By: G. Kr.
Status: Open Resolved
Resolution: Not A Defect

ls.raboo@gmail.com (JIRA)

unread,
Feb 22, 2016, 9:04:05 AM2/22/16
to jenkinsc...@googlegroups.com
Ravindra Singh reopened an issue
 

Already commented

Change By: Ravindra Singh
Resolution: Not A Defect
Status: Resolved Reopened

ls.raboo@gmail.com (JIRA)

unread,
Feb 22, 2016, 9:04:07 AM2/22/16
to jenkinsc...@googlegroups.com
Ravindra Singh commented on Bug JENKINS-30691
 
Re: Unable to connect to remote server

I am still facing the issue with Centos 6.5 , Centos 7 and Ubuntu 14.04

virsh -c qmue+ssh://root@servername/system list – works fine from commandline
tried all possible combincation of credentials with both username/password and ssh name/phasphrase.

Have already setup the password less ssh between my jenkins server and the hypervisor still facing the issue with the plugin.

gkr@gkr.i24.cc (JIRA)

unread,
Mar 20, 2016, 4:29:02 PM3/20/16
to jenkinsc...@googlegroups.com
G. Kr. commented on Bug JENKINS-30691

Ravindra Singh can you check whether this is related to JENKINS-25258

tmunjal@gmx.com (JIRA)

unread,
Dec 19, 2019, 1:04:03 PM12/19/19
to jenkinsc...@googlegroups.com

Hi Debashish, can you explain what do you mean by "After adding the key to store, the plugin started working.'?

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages