Started by upstream project "virtuozzo-update" build number 138
originally caused by:
Started by timer
[EnvInject] - Loading node environment variables.
Building on master in workspace /var/lib/jenkins/jobs/virtuozzo-reboot/workspace
No emails were triggered.
Setting virtuozzo temporarily offline
executing script:
# Rework of https://gist.github.com/scarytom/5910362
set -e
set -u
CI_MASTER_URL="https://ci.openvz.org"
NODE="virtuozzo"
node_online() {
curl --insecure --silent "$CI_MASTER_URL/computer/$1/api/json" | grep --silent '"temporarilyOffline":false'
}
node_busy() {
curl --insecure --silent "$CI_MASTER_URL/computer/$1/api/json" | grep --silent '"idle":false'
}
wait_for_node() {
while node_busy $1; do
sleep 20
echo -n "."
done
echo ""
}
# Check node is offline
if node_online $NODE; then
echo "Node $NODE is online - can not reboot"
exit 1
else
echo "Node $NODE is offline - can reboot"
fi
# Wait for node to finish current workload
if node_busy $NODE; then
echo "Waiting for node $NODE to finish its current work"
wait_for_node $NODE
echo "Node $NODE has finished its work"
else
echo "Node $NODE is not busy"
fi
# Reboot node
LAST_KERNEL=$(rpm -q --last vzkernel | head -1 | sed 's/vzkernel-\(.*\)\.x86_64 .*/\1/')
CURRENT_KERNEL=$(uname -r)
if [ "$LAST_KERNEL" = "$CURRENT_KERNEL" ]; then
echo "Node $NODE has no new kernel to reboot"
else
echo "Rebooting $NODE into new kernel"
reboot &
fi
[SSH] Exception:Auth fail
com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:452)
at com.jcraft.jsch.Session.connect(Session.java:150)
at org.jvnet.hudson.plugins.SSHSite.createSession(SSHSite.java:141)
at org.jvnet.hudson.plugins.SSHSite.executeCommand(SSHSite.java:151)
at org.jvnet.hudson.plugins.SSHBuilder.perform(SSHBuilder.java:60)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.build(Build.java:205)
at hudson.model.Build$BuildExecution.doRun(Build.java:162)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1720)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:404)
Build step 'Execute shell script on remote host using ssh' marked build as failure
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Request made to compress build log
Sending email to: ptikhomirov@virtuozzo.com snorcht@gmail.com
Finished: FAILURE