This test is meant to simulate uncommon network situations where lots of I/O are getting dropped before they get to the initiator. Essentially, we are trying to trigger the initiator timeout in the kernel which disconnects from the target and reconnects after 10 seconds. This test is different from the other tests that we have currently because it doesn't rely on killing either the target or initiator. Instead it expects the target to stay up and properly respond to the initiator error conditions. The hope is that the fio job running on the initiator can still complete successfully and the target doesn't crash due to improperly handling the disconnect and reconnect. This test should be added to the nightly CI jobs because it is rather time consuming. Change-Id: Id457d9eb21a980140f065663547b89b2c69ace93 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/464459 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com>
61 lines
1.9 KiB
Bash
Executable File
61 lines
1.9 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
testdir=$(readlink -f $(dirname $0))
|
|
rootdir=$(readlink -f $testdir/../..)
|
|
source $rootdir/test/common/autotest_common.sh
|
|
|
|
if [ ! $(uname -s) = Linux ]; then
|
|
exit 0
|
|
fi
|
|
|
|
source $rootdir/test/nvmf/common.sh
|
|
|
|
timing_enter nvmf_tgt
|
|
|
|
trap "exit 1" SIGINT SIGTERM EXIT
|
|
|
|
TEST_ARGS=$@
|
|
|
|
run_test suite test/nvmf/target/filesystem.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/discovery.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/connect_disconnect.sh $TEST_ARGS
|
|
if [ $SPDK_TEST_NVME_CLI -eq 1 ]; then
|
|
run_test suite test/nvmf/target/nvme_cli.sh $TEST_ARGS
|
|
fi
|
|
run_test suite test/nvmf/target/nvmf_lvol.sh $TEST_ARGS
|
|
#TODO: disabled due to intermittent failures. Need to triage.
|
|
# run_test suite test/nvmf/target/srq_overwhelm.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/nvmf_vhost.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/bdev_io_wait.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/create_transport.sh $TEST_ARGS
|
|
|
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
|
run_test suite test/nvmf/target/fuzz.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/multiconnection.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/initiator_timeout.sh $TEST_ARGS
|
|
fi
|
|
|
|
run_test suite test/nvmf/target/nmic.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/rpc.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/fio.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/shutdown.sh $TEST_ARGS
|
|
run_test suite test/nvmf/target/bdevio.sh $TEST_ARGS
|
|
|
|
timing_enter host
|
|
|
|
run_test suite test/nvmf/host/bdevperf.sh $TEST_ARGS
|
|
run_test suite test/nvmf/host/identify.sh $TEST_ARGS
|
|
run_test suite test/nvmf/host/perf.sh $TEST_ARGS
|
|
|
|
# TODO: disabled due to intermittent failures (RDMA_CM_EVENT_UNREACHABLE/ETIMEDOUT)
|
|
#run_test test/nvmf/host/identify_kernel_nvmf.sh $TEST_ARGS
|
|
run_test suite test/nvmf/host/aer.sh $TEST_ARGS
|
|
run_test suite test/nvmf/host/fio.sh $TEST_ARGS
|
|
|
|
timing_exit host
|
|
|
|
trap - SIGINT SIGTERM EXIT
|
|
revert_soft_roce
|
|
|
|
report_test_completion "nvmf"
|
|
timing_exit nvmf_tgt
|