Hello World,
I have 6 hosts where VMs for Jenkins are located. The VMs are all
QEMU/KVM and are handled by libvirt. After a Jenkins update I cannot
connect to 2 of these 6 hosts any longer.
Hosts: (all) Debian GNU/Linux 10.3
Jenkins: 2.222.3
Libvirt plugin: 1.8.5
I have a user "jenkins" on the Jenkins server and on the host with the
virtual machines. I copied the keys from Jenkins to the host and can ssh
from Jenkins to the host without password.
I can also (with the user jenkins) connect to qemu+ssh://<host>/system
within the virtual shell virsh and perform commands.
But if I try to connect from Jenkins (in the Clouds Settings) I get the
error message:
com.nirima.libvirt.xdr.XDRException: authentication required
if the "Use Native Java libvirt client" is set.
And also on the host, I have the following entry in the log (syslog and
debug):
May 25 10:59:59 aat-1 libvirtd[986]: authentication required
But in the auth.log, I get:
May 25 10:59:59 aat-1 sshd[10878]: Accepted password for jenkins from
192.168.168.10 port 56746 ssh2
May 25 10:59:59 aat-1 sshd[10878]: pam_unix(sshd:session): session
opened for user jenkins by (uid=0)
May 25 10:59:59 aat-1 systemd-logind[501]: New session 341 of user jenkins.
May 25 10:59:59 aat-1 systemd: pam_unix(systemd-user:session): session
opened for user jenkins by (uid=0)
If "Use Native Java libvirt client" is not checked, I get an "ERROR"
link and if I click on it, a huge Java traceback is displayed, starting
with:
java.lang.NoClassDefFoundError: Could not initialize class
org.libvirt.Connect
at
hudson.plugins.libvirt.lib.libvirt.LibVirtConnectImpl.<init>(LibVirtConnectImpl.java:23)
at
hudson.plugins.libvirt.lib.ConnectionBuilder.build(ConnectionBuilder.java:97)
at
hudson.plugins.libvirt.Hypervisor$DescriptorImpl.doTestConnection(Hypervisor.java:454)
I noticed that the libvirt-slave plugin is compiled using Java 5. Is it
too old?
What can I do to solve my problem? Any ideas?
TIA and best regards
Andreas
--
Andreas Tscharner sternenfe...@gmail.com
Gordon's Law:
If you think you have the solution, the question was poorly phrased.
--
You received this message because you are subscribed to the Google Groups "Jenkins
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/a7258141-67ab-b114-ca58-7c49e88835f6%40gmail.com.