From 5efc71b5aad51393087b2557d10d810c429040b3 Mon Sep 17 00:00:00 2001 From: Pawel Niedzwiecki Date: Tue, 2 Oct 2018 16:17:41 +0200 Subject: [PATCH] test/vhost: Fix VM timeouts during shutdown Change system manager timeout for stopping services. Lagging services cause timeouts during shutting down VM. Change-Id: I7428724cf8795ffe3c215bacdb56cb3f58fbdff0 Signed-off-by: Pawel Niedzwiecki Reviewed-on: https://review.gerrithub.io/427715 Tested-by: SPDK CI Jenkins Chandler-Test-Pool: SPDK Automated Test System Reviewed-by: Pawel Wodkowski Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- test/vhost/common/common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/vhost/common/common.sh b/test/vhost/common/common.sh index b632faef9e..03dd48fd86 100644 --- a/test/vhost/common/common.sh +++ b/test/vhost/common/common.sh @@ -909,6 +909,8 @@ function vm_wait_for_boot() done echo "" notice "VM$vm_num ready" + #Change Timeout for stopping services to prevent lengthy powerdowns + vm_ssh $vm_num "echo 'DefaultTimeoutStopSec=10' >> /etc/systemd/system.conf; systemctl daemon-reexec" done notice "all VMs ready"