Spdk/test/nvmf/target
Shuhei Matsumoto 3aeeb4b68f test/nvmf_multipath: Retry checking if ANA state is changed with timeout
The latest Linux NVMe host (e.g. Linux kernel 5.12) have improved
the quality of multipath but still has an issue such that ANA state
is observed to be invalid even after connection is successfully
created.

By code inspection and system test, initializing ANA state may be
delayed even after connection is successfully created.

We can insert a short sleep but it will be better to retry checking
with timeout. The created function check_ana_state() is applied to
the remaining cases.

This fixes the part of the issue #1819.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ifc4eaef7c702d961caeee5bcdc9e6eab4704fc5d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8475
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: <dongx.yi@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-06-28 16:25:24 +00:00
..
abort.sh example/nvme: add application to test NVMe I/O abort 2020-07-17 07:21:13 +00:00
bdev_io_wait.sh test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
bdevio.sh test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
connect_disconnect.sh test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
create_transport.sh test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
dif.sh test/nvmf: use recommended nvmf_create_subsystem rpc 2021-05-20 15:00:22 +00:00
discovery.sh test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
filesystem.sh test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
fio.sh autotest: Replace fio.py with a bash wrapper in tests 2021-05-12 08:48:10 +00:00
fuzz.sh check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
host_management.sh nvmf: nvmf_subsystem_remove_host RPC now disconnects hosts 2020-10-22 03:55:57 +00:00
identify_passthru.sh nvmf: The maximum number of namespaces a subsystem may contain must now 2020-12-01 10:20:43 +00:00
initiator_timeout.sh autotest: Replace fio.py with a bash wrapper in tests 2021-05-12 08:48:10 +00:00
invalid.sh nvmf: Allow configurable controller ID range 2021-05-12 09:18:48 +00:00
multiconnection.sh autotest: Replace fio.py with a bash wrapper in tests 2021-05-12 08:48:10 +00:00
multipath.sh test/nvmf_multipath: Retry checking if ANA state is changed with timeout 2021-06-28 16:25:24 +00:00
multitarget_rpc.py test/nvmf: test the new nvmf RPCs. 2019-09-26 15:21:44 +00:00
multitarget.sh test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
nmic.sh autotest: Replace fio.py with a bash wrapper in tests 2021-05-12 08:48:10 +00:00
ns_hotplug_stress.sh nvmf: do not pause a namespace when resizing 2021-02-22 10:05:11 +00:00
nvme_cli.sh test/nvmf: Simplify get_nvme_devs() 2021-06-04 19:58:56 +00:00
nvmf_example.sh test/nvmf_example: Remove duplicated test code. 2020-12-14 14:34:14 +00:00
nvmf_lvol.sh build: Example applications build to build/example 2020-06-15 15:27:16 +00:00
nvmf_vfio_user.sh test/vfio-user: use variables to make each line more shorter 2021-06-09 07:21:31 +00:00
nvmf_vhost_fio.job create nvmf+vhost test. 2019-05-21 10:01:50 +00:00
nvmf_vhost.sh check_format: Reformat the Bash code in compliance with shfmt 2020-05-07 20:52:21 +00:00
rpc.sh test/nvmf: Handle multiple arguments in nvmfappstart() 2020-05-13 07:46:04 +00:00
shutdown.sh test/nvmf: only disable test cases in top-level script 2020-07-31 08:21:23 +00:00
srq_overwhelm.sh autotest: Replace fio.py with a bash wrapper in tests 2021-05-12 08:48:10 +00:00