Commit 5333a632 authored by Pawel Wodkowski's avatar Pawel Wodkowski Committed by Jim Harris
Browse files

test/migration: debug VM shutdown issue



Although migration successfully end Test Case 1 fail because
of some VM shutdown issue. This look like test issue.
Temporarily increase verbosity in vm_shutdown  function to debug
this issue.

Change-Id: I3d54775b2e4e7286bd86359a7ac5ca2a9d8ad750
Signed-off-by: default avatarPawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/402531


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 0b04e430
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -449,7 +449,8 @@ function vm_kill_all()
function vm_shutdown_all()
{
	local shell_restore_x="$( [[ "$-" =~ x ]] && echo 'set -x' )"
	set +x
	# XXX: temporally disable to debug shutdown issue
	# set +x

	local vms=$(vm_list_all)
	local vm
@@ -459,9 +460,9 @@ function vm_shutdown_all()
	done

	notice "Waiting for VMs to shutdown..."
	timeo=15
	local timeo=15
	while [[ $timeo -gt 0 ]]; do
		all_vms_down=1
		local all_vms_down=1
		for vm in $vms; do
			if [[ -r $VM_BASE_DIR/$vm/qemu.pid ]] && pkill -0 -F "$VM_BASE_DIR/$vm/qemu.pid"; then
				all_vms_down=0
+2 −0
Original line number Diff line number Diff line
@@ -39,6 +39,8 @@ function migration_tc1_configure_vhost()
function migration_tc1_error_handler()
{
	trap - SIGINT ERR EXIT
	warning "Migration TC1 ERROR HANDLER"
	print_backtrace
	set -x

	vm_kill_all