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: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/402531
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Pawel Wodkowski 2018-03-05 15:21:21 +01:00 committed by Jim Harris
parent 0b04e430f1
commit 5333a632ce
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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