On 23.11.2015 16:53, Jason Swager wrote:
Is the build running on a VM slave and you're trying to revert to a
snapshot of that particular VM slave?

Yes

If so - that's not supported.  Jenkins requires that the slave doing a

[snip]
To work around this, split the job across two jobs.  First job reverts
the targeted slave VM, second job runs on the targeted slave VM.

This does not seem to work either. I created a job, which has only "Use Snapshot" set, the snapshotname "production" and the node where it should run ("build-vm3")

I got the same/similar error as before:

Gestartet durch Benutzer anonymous
Got snapshot production from job configuration
Preparing to revert build-vm3 to snapshot production.
[EnvInject] - Loading node environment variables.
ERROR: SEVERE ERROR occurs
org.jenkinsci.lib.envinject.EnvInjectException: hudson.remoting.ChannelClosedException: channel is already closed at org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvironmentVariablesNode(EnvironmentVariablesNodeLoader.java:75) at org.jenkinsci.plugins.envinject.EnvInjectListener.loadEnvironmentVariablesNode(EnvInjectListener.java:81) at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:39) at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:572) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:492)
        at hudson.model.Run.execute(Run.java:1738)
        at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
        at hudson.model.ResourceController.execute(ResourceController.java:98)
        at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.remoting.ChannelClosedException: channel is already closed
        at hudson.remoting.Channel.send(Channel.java:578)
        at hudson.remoting.Request.call(Request.java:130)
        at hudson.remoting.Channel.call(Channel.java:780)
        at hudson.FilePath.act(FilePath.java:1074)
at org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvironmentVariablesNode(EnvironmentVariablesNodeLoader.java:44)
        ... 8 more
Caused by: java.io.IOException
        at hudson.remoting.Channel.close(Channel.java:1163)
        at hudson.remoting.Channel.close(Channel.java:1138)
at hudson.plugins.libvirt.LibvirtSnapshotRevertRunListener.revertVMSnapshot(LibvirtSnapshotRevertRunListener.java:84) at hudson.plugins.libvirt.LibvirtSnapshotRevertRunListener.onStarted(LibvirtSnapshotRevertRunListener.java:58)
        at hudson.model.listeners.RunListener.fireStarted(RunListener.java:215)
        at hudson.model.Run.execute(Run.java:1734)
        ... 3 more
Finished: FAILURE

Do I have to shut it down before?

Best regards
        Andreas
--
Andreas Tscharner                             <sternenfe...@gmail.com>
----------------------------------------------------------------------
"Intruder on level one. All Aliens please proceed to level one."
                                      -- Call in "Alien: Resurrection"

--
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/56542407.5080205%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to