Whamcloud - gitweb
LU-18019 tests: Check for large NIDs in load_modules_local 94/55694/6
authorChris Horn <chris.horn@hpe.com>
Wed, 10 Jul 2024 16:39:52 +0000 (10:39 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 31 Jul 2024 16:03:56 +0000 (16:03 +0000)
Enforce FORCE_LARGE_NID in load_modules_local by calling load_lnet()
with config_on_load=1. This will force large NID configuration (if
large NIDs are assigned to LNet interfaces), but should not alter
the existing behavior when large NIDs are not assigned to LNet
interfaces.

Test-Parameters: trivial
Fixes: c8ca47daac ("LU-16822 tests: Force IPv6 testing in mixed environment")
Signed-off-by: Chris Horn <chris.horn@hpe.com>
Change-Id: I66d201c61c59246486f2aa60ab2338bd9e5317b6
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55694
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
lustre/tests/test-framework.sh

index 56e6c06..da3e86e 100755 (executable)
@@ -1072,7 +1072,11 @@ load_modules_local() {
        udevadm control --reload-rules
        udevadm trigger
 
-       load_lnet
+       if $FORCE_LARGE_NID; then
+               load_lnet config_on_load=1
+       else
+               load_lnet
+       fi
 
        load_module obdclass/obdclass
        if ! client_only; then