Whamcloud - gitweb
EX-8059 tests: hot-pools to work in a single node
authorAlex Zhuravlev <bzzz@whamcloud.com>
Fri, 11 Aug 2023 06:26:09 +0000 (09:26 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 14 Aug 2023 21:35:39 +0000 (21:35 +0000)
hot-pools.sh doesn't start on a single node setup because it tries
to find lpurge on $(all_osts_nodes) is empty. make single node
setup an exclusion.

Test-Parameters: trivial
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I6520ff7bef92d62fd39f4c9347462d046844ecea
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51925
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/hot-pools.sh

index e9c1300..a2946a7 100755 (executable)
@@ -23,10 +23,16 @@ remote_mds_nodsh && skip_env "remote MDS with nodsh"
 remote_ost_nodsh && skip_env "remote OSS with nodsh"
 
 # check if lamigo is installed on MDS(s) and lpurge is installed on OSS(s)
-do_nodes $(comma_list $(all_mgt_mdts_nodes)) "which lamigo" &>/dev/null ||
-       skip_env "lamigo is not installed on MDS"
-do_nodes $(comma_list $(all_osts_nodes)) "which lpurge" &>/dev/null ||
-       skip_env "lpurge is not installed on OSS"
+if ! local_mode; then
+       do_nodes $(comma_list $(all_mgt_mdts_nodes)) "which lamigo" &>/dev/null ||
+               skip_env "lamigo is not installed on MDS"
+       do_nodes $(comma_list $(all_osts_nodes)) "which lpurge" &>/dev/null ||
+               skip_env "lpurge is not installed on OSS"
+else
+       which lamigo &>/dev/null || skip_env "lamigo is not installed"
+       which lpurge &>/dev/null || skip_env "lpurge is not installed"
+
+fi
 
 which yq || skip_env "yq is not installed"
 YQ_OUTPUT=$(echo 'pants: OK' | yq .)