Whamcloud - gitweb
LU-14990 tests: Detect correct LNet interface for sanity-lnet 57/44857/2
authorChris Horn <chris.horn@hpe.com>
Tue, 7 Sep 2021 15:24:14 +0000 (10:24 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 17 Sep 2021 14:10:30 +0000 (14:10 +0000)
commitf9669c4d3092d44cbc2e2d3c225aee6ebaf268e9
tree38c49219e29d44d2e7f20d95bea83d3b9ffab464
parent0a900c5b4a28c4c63055dde00c7b91e39c4912a0
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).

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