Whamcloud - gitweb
LU-14627 tests: Create unload_modules_local
authorChris Horn <chris.horn@hpe.com>
Fri, 23 Apr 2021 19:05:02 +0000 (14:05 -0500)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 20 Jul 2021 07:04:11 +0000 (07:04 +0000)
commitdc0d26d058c57469ec52ea3f13077f6fab418dce
tree0c26f02ca372d67e77ca617c19c52e38819e0630
parent1b606593faa104f97a89c003f50a45e36caab3e7
LU-14627 tests: Create unload_modules_local

t-f allows for loading modules on single node via load_modules_local.
However, there is no corresponding unload_modules_local that can be
called to cleanup after call to load_modules_local, so we create it.
unload_modules() refactored to use unload_modules_local.

Also address a potential issue that can prevent LND modules from
unloading. Some LNet setup (particularly those in sanity-lnet) may
require that we call lnetctl lnet unconfigure (or lctl net down)
to drop a ref on the module before it can be unloaded.

Lustre-change: https://review.whamcloud.com/43425
Lustre-commit: 32304d863ae98c641f541362f54e7b1f24b350a6

HPE-bug-id: LUS-9031
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I6458a7728f5f559f8641c5a9e29dd775c8445c38
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/44255
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/scripts/lustre_rmmod
lustre/tests/sanity-lnet.sh
lustre/tests/test-framework.sh