Whamcloud - gitweb
LU-15398 tests: Use remote peers for health tests
authorChris Horn <chris.horn@hpe.com>
Tue, 4 Jan 2022 20:42:26 +0000 (14:42 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Sun, 23 Jul 2023 01:20:14 +0000 (01:20 +0000)
commit1d2809f4c2d9b1709a31908bd9d6f732ce70d792
treefd5f16b37b4f965b773666a8fd2497ccc3f37353
parentfeddead833d2aefe6040270869916bf5c3210b51
LU-15398 tests: Use remote peers for health tests

LNet health may take different action depending on whether a NID
belongs to the local host or a remote peer. As such, the test cases
need to be careful to use remote or local NIs appropriately.

Introduce helper functions to create and cleanup LNet peers that are
needed for these tests. Convert existing test cases to use the new
helpers.

New function, lnet_if_list(), is added to test-framework.sh to
facilitate configuration of remote interfaces. do_rpc_nodes() modified
to recognize '--quiet' flag to ease parsing of lnet_if_list() output.

Tests 204 and 206 were re-worked to check the health state after each
simulated error. lnet_health_post() modified to reset peer and local
NI health so they are at max value when each error condition is
simulated.

Test 214, 215, and 250 were using hardcoded "eth0" names. These were
switched to use the INTERFACES variable.

The lnet_recovery_limit parameter is deprecated so remove lines that
were setting that parameter.

Lustre-change: https://review.whamcloud.com/45975
Lustre-commit: 3166a201e0a5cbc173ca110f64dc21f32ec10c8c

Test-Parameters: trivial testlist=sanity-lnet
HPE-bug-id: LUS-10661
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I685fda8a84bcce024a765ddfc81c085acf24607a
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51682
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity-lnet.sh
lustre/tests/test-framework.sh