Whamcloud - gitweb
LU-14627 tests: Create unload_modules_local 60/43960/3
authorChris Horn <chris.horn@hpe.com>
Fri, 23 Apr 2021 19:05:02 +0000 (14:05 -0500)
committerOleg Drokin <green@whamcloud.com>
Sun, 27 Jun 2021 10:57:07 +0000 (10:57 +0000)
commit347bbb765f4dfc509c395da4b2b699586dba7366
tree7c0985b8acd151b6ae9608799a0c1c4171148a43
parentfea5e60b97adef090e8475e6f03101c0c8521203
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>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/43960
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/scripts/lustre_rmmod
lustre/tests/sanity-lnet.sh
lustre/tests/test-framework.sh