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

Libvirt does not shut down agents after last upgrade of plugin

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • libvirt-slave-plugin
    • None

      I am currently using the latest version of jenkins - 1.564.
      After upgrading the libvirt plugin from 1.8.0 to the latest 0.8.4 The slaves do not shut down again when idle. Downgrading the plugin fixes this.

          [JENKINS-23233] Libvirt does not shut down agents after last upgrade of plugin

          Johan Cronje added a comment -

          From the logs, it seems the problem is when trying to shut down the machine:

          Jun 13, 2014 10:43:46 AM SEVERE hudson.remoting.Channel$2 handle
          
          Failed to execute command close (channel devel-win64-node1)
          java.lang.NullPointerException
          	at java.util.regex.Matcher.getTextLength(Matcher.java:1234)
          	at java.util.regex.Matcher.reset(Matcher.java:308)
          	at java.util.regex.Matcher.<init>(Matcher.java:228)
          	at java.util.regex.Pattern.matcher(Pattern.java:1088)
          	at java.util.Formatter.parse(Formatter.java:2515)
          	at java.util.Formatter.format(Formatter.java:2469)
          	at java.util.Formatter.format(Formatter.java:2423)
          	at java.lang.String.format(String.java:2797)
          	at hudson.util.StreamTaskListener.fatalError(StreamTaskListener.java:153)
          	at hudson.plugins.libvirt.VirtualMachineLauncher.afterDisconnect(VirtualMachineLauncher.java:192)
          	at hudson.slaves.SlaveComputer$2.onClosed(SlaveComputer.java:443)
          	at hudson.remoting.Channel.terminate(Channel.java:819)
          	at hudson.remoting.Channel$CloseCommand.execute(Channel.java:951)
          	at hudson.remoting.Channel$2.handle(Channel.java:475)
          	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)
          
          Jun 13, 2014 10:43:46 AM SEVERE hudson.remoting.Channel$2 handle
          
          This command is created here
          Command close created at
          	at hudson.remoting.Command.<init>(Command.java:56)
          	at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:945)
          	at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:943)
          	at hudson.remoting.Channel.close(Channel.java:1026)
          	at hudson.remoting.Channel.close(Channel.java:1009)
          	at hudson.remoting.Channel$CloseCommand.execute(Channel.java:950)
          	at hudson.remoting.Channel$2.handle(Channel.java:475)
          	at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)
          

          Johan Cronje added a comment - From the logs, it seems the problem is when trying to shut down the machine: Jun 13, 2014 10:43:46 AM SEVERE hudson.remoting.Channel$2 handle Failed to execute command close (channel devel-win64-node1) java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1234) at java.util.regex.Matcher.reset(Matcher.java:308) at java.util.regex.Matcher.<init>(Matcher.java:228) at java.util.regex.Pattern.matcher(Pattern.java:1088) at java.util.Formatter.parse(Formatter.java:2515) at java.util.Formatter.format(Formatter.java:2469) at java.util.Formatter.format(Formatter.java:2423) at java.lang.String.format(String.java:2797) at hudson.util.StreamTaskListener.fatalError(StreamTaskListener.java:153) at hudson.plugins.libvirt.VirtualMachineLauncher.afterDisconnect(VirtualMachineLauncher.java:192) at hudson.slaves.SlaveComputer$2.onClosed(SlaveComputer.java:443) at hudson.remoting.Channel.terminate(Channel.java:819) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:951) at hudson.remoting.Channel$2.handle(Channel.java:475) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60) Jun 13, 2014 10:43:46 AM SEVERE hudson.remoting.Channel$2 handle This command is created here Command close created at at hudson.remoting.Command.<init>(Command.java:56) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:945) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:943) at hudson.remoting.Channel.close(Channel.java:1026) at hudson.remoting.Channel.close(Channel.java:1009) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:950) at hudson.remoting.Channel$2.handle(Channel.java:475) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:60)

          Cannot reproduce with current version. Please reopen if it is not fixed.

          Bastian Germann added a comment - Cannot reproduce with current version. Please reopen if it is not fixed.

            bgermann Bastian Germann
            hmeiring Hendrik Meiring
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: