Whamcloud - gitweb
LU-14291 tests: make module loading of ost optional 58/54258/2
authorJames Simmons <jsimmons@infradead.org>
Wed, 14 Feb 2024 12:38:25 +0000 (07:38 -0500)
committerOleg Drokin <green@whamcloud.com>
Sun, 16 Jun 2024 03:36:23 +0000 (03:36 +0000)
Future Lustre versions will no longer have an ost kernel module.
load_module in the test framework will failure so capture the
failure to ignore it. We will need this for interop testing.

Lustre-change: https://review.whamcloud.com/54040
Lustre-commit: ef7deb7b076e554279f88f6d57afa17884027f9a

Change-Id: Iedff4f6a36ceffa9428e3f891db78b7538217085
Test-Parameters: trivial
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54258
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/test-framework.sh

index d01bfdd..91b1cf9 100755 (executable)
@@ -799,9 +799,9 @@ load_modules_local() {
                load_module mgs/mgs
                load_module mdd/mdd
                load_module mdt/mdt
-               load_module ost/ost
+               # don't fail if ost module doesn't exist
+               load_module ost/ost 2>/dev/null || true;
                load_module lod/lod
-               load_module osp/osp
                load_module ofd/ofd
                load_module osp/osp
        fi