Whamcloud - gitweb
LU-14990 tests: Detect correct LNet interface for sanity-lnet
authorChris Horn <chris.horn@hpe.com>
Tue, 7 Sep 2021 15:24:14 +0000 (10:24 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 16 Dec 2021 04:47:25 +0000 (04:47 +0000)
commit6db8f52ed08abc8ca1604f48839771ed6260536b
treeb1ef87b0ef0aae41ccece861b780f17e6f74a977
parent967d47d22a59a7cdce54315eea17c394b0737225
LU-14990 tests: Detect correct LNet interface for sanity-lnet

Determine the names of the interfaces used for LNet by parsing the
NIDs configured after calling load_modules(). Tests which reference
eth0 are modified to use the interface associated with the primary
NID (i.e. first NID output by lctl list_nids).

Lustre-change: https://review.whamcloud.com/44857
Lustre-commit: f9669c4d3092d44cbc2e2d3c225aee6ebaf268e9

Test-Parameters: trivial testlist=sanity-lnet
HPE-bug-id: LUS-10385
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: Id715aa3e5470d9c110f6248620b1a83920875e7b
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45760
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-lnet.sh