Whamcloud - gitweb
LU-14291 tests: make module loading of ost optional 40/54040/2
authorJames Simmons <jsimmons@infradead.org>
Wed, 14 Feb 2024 12:38:25 +0000 (07:38 -0500)
committerOleg Drokin <green@whamcloud.com>
Fri, 23 Feb 2024 07:18:05 +0000 (07:18 +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.

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

index 9e9ea07..b329c40 100755 (executable)
@@ -1023,9 +1023,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