From 687a9ab5169c9bb5d8ee885a94803a19ce57c6a5 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Mon, 8 Jun 2020 20:31:00 +0800 Subject: [PATCH] iscsi migration test: Extend the execution time of fio. When we conduct the ip migration test (i.e., switch the iSCSI target process from to first process to second). This time may exceed the 5s in some cases, so FIO process will exit with error and make the test fail. Because The total FIO execution time is 10s, and we sleep 5s in the script. So propose the following approach: 1 Change the sleep from 5s to 3s, we do not need to sleep it too long for FIO. 2 Extend the FIO execution time from 10s to 12s. Signed-off-by: Ziye Yang Change-Id: I07d488c6e8a94733534acc1acd2ba8778c4d2eb3 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2801 Reviewed-by: Shuhei Matsumoto Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins --- test/iscsi_tgt/ip_migration/ip_migration.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/iscsi_tgt/ip_migration/ip_migration.sh b/test/iscsi_tgt/ip_migration/ip_migration.sh index 63e668dff8..d737e01b35 100755 --- a/test/iscsi_tgt/ip_migration/ip_migration.sh +++ b/test/iscsi_tgt/ip_migration/ip_migration.sh @@ -112,9 +112,9 @@ iscsiadm -m node --login -p $MIGRATION_ADDRESS:$ISCSI_PORT waitforiscsidevices 1 # fio tests for multi-process -$fio_py -p iscsi -i 4096 -d 32 -t randrw -r 10 & +$fio_py -p iscsi -i 4096 -d 32 -t randrw -r 12 & fiopid=$! -sleep 5 +sleep 3 $rpc_py -s $rpc_first_addr spdk_kill_instance SIGTERM