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

Not reconnect if libvirt is restarted

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      If the host (or service) where the libvirtd is running, is restarted, the connection from Jenkins will be lost. However, is expected to be reconnected and that is not happening. I have to manually restart Jenkins in order to regain the connection (there is no option to reconnect to libvirt host). This affects all the slaves in that host, no builds can be done in those slaves (if those slave are offline).

      Log:
      Getting connection to the virtual datacenter
      org.libvirt.LibvirtException: cannot send data: Broken pipe
      at org.libvirt.ErrorHandler.processError(Unknown Source)
      at org.libvirt.Connect.processError(Unknown Source)
      at org.libvirt.Connect.numOfDefinedDomains(Unknown Source)
      at org.libvirt.Connect.listDefinedDomains(Unknown Source)
      at hudson.plugins.libvirt.Hypervisor.getDomains(Hypervisor.java:146)
      at hudson.plugins.libvirt.VirtualMachineLauncher.launch(VirtualMachineLauncher.java:99)
      at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:679)

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: tastybug
          Path:
          src/main/java/hudson/plugins/libvirt/Hypervisor.java
          src/main/java/hudson/plugins/libvirt/PluginImpl.java
          src/main/java/hudson/plugins/libvirt/VirtualMachineLauncher.java
          src/main/java/hudson/plugins/libvirt/VirtualMachineSlave.java
          src/main/resources/hudson/plugins/libvirt/VirtualMachineSlave/configure-entries.jelly
          src/main/resources/index.jelly
          src/main/webapp/help-libvirt-computerName.html
          src/main/webapp/help-libvirt-hypervisorHost.html
          src/main/webapp/help-libvirt-hypervisorSshPort.html
          src/main/webapp/help-libvirt-hypervisorType.html
          src/main/webapp/help-libvirt-hypervisorUri.html
          http://jenkins-ci.org/commit/libvirt-slave-plugin/550e3286fa7df9514498562d4ba28ddf5784c1c1
          Log:
          -Fixed JENKINS-14468
          -Fixed JENKINS-9471 (and duplicates JENKINS-8240, JENKINS-7179)
          -Some comments improved

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: tastybug Path: src/main/java/hudson/plugins/libvirt/Hypervisor.java src/main/java/hudson/plugins/libvirt/PluginImpl.java src/main/java/hudson/plugins/libvirt/VirtualMachineLauncher.java src/main/java/hudson/plugins/libvirt/VirtualMachineSlave.java src/main/resources/hudson/plugins/libvirt/VirtualMachineSlave/configure-entries.jelly src/main/resources/index.jelly src/main/webapp/help-libvirt-computerName.html src/main/webapp/help-libvirt-hypervisorHost.html src/main/webapp/help-libvirt-hypervisorSshPort.html src/main/webapp/help-libvirt-hypervisorType.html src/main/webapp/help-libvirt-hypervisorUri.html http://jenkins-ci.org/commit/libvirt-slave-plugin/550e3286fa7df9514498562d4ba28ddf5784c1c1 Log: -Fixed JENKINS-14468 -Fixed JENKINS-9471 (and duplicates JENKINS-8240 , JENKINS-7179 ) -Some comments improved
          Hide
          tastybug Philipp Bartsch added a comment -

          Fixed in 1.7

          Show
          tastybug Philipp Bartsch added a comment - Fixed in 1.7
          Hide
          gkr G. Kr. added a comment -

          closing as fixed

          Show
          gkr G. Kr. added a comment - closing as fixed

            People

            • Assignee:
              tastybug Philipp Bartsch
              Reporter:
              egonzalez Eduardo Gonzalez
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: