Whamcloud - gitweb
LU-13943 tests: load modules for list_nids getting 15/39815/2
authorElena Gryaznova <elena.gryaznova@hpe.com>
Thu, 3 Sep 2020 11:48:32 +0000 (14:48 +0300)
committerOleg Drokin <green@whamcloud.com>
Sat, 12 Sep 2020 15:46:31 +0000 (15:46 +0000)
If modules not loaded it does not make sence to call
  host_nids_address() -> $LCTL list_nids

Test-Parameters: trivial testlist=lnet-selftest
HPE-bug-id: LUS-9265
Signed-off-by: Elena Gryaznova <elena.gryaznova@hpe.com>
Reviewed-by: Vladimir Saveliev <c17830@cray.com>
Reviewed-by: Alexander Zarochentsev <c17826@cray.com>
Change-Id: I9eb431cd293e8b4831d433ceda752b03fd78c581
Reviewed-on: https://review.whamcloud.com/39815
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/lnet-selftest.sh

index 4d655f6..045ff4a 100755 (executable)
@@ -49,6 +49,9 @@ case $lst_CHECK in
        none) check="";;
        *) error Unknown flag $lst_CHECK;;
 esac
        none) check="";;
        *) error Unknown flag $lst_CHECK;;
 esac
+
+LOAD_MODULES_REMOTE=true load_modules
+
 nodes=$(comma_list "$(osts_nodes) $(mdts_nodes)")
 lst_SERVERS=${lst_SERVERS:-$(comma_list "$(host_nids_address $nodes $NETTYPE)")}
 lst_CLIENTS=${lst_CLIENTS:-$(comma_list "$(host_nids_address $CLIENTS $NETTYPE)")}
 nodes=$(comma_list "$(osts_nodes) $(mdts_nodes)")
 lst_SERVERS=${lst_SERVERS:-$(comma_list "$(host_nids_address $nodes $NETTYPE)")}
 lst_CLIENTS=${lst_CLIENTS:-$(comma_list "$(host_nids_address $CLIENTS $NETTYPE)")}