From: Andreas Dilger Date: Tue, 31 Mar 2020 23:25:15 +0000 (-0600) Subject: LU-11025 tests: only set crush for newer builds X-Git-Tag: 2.13.54~211 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=95211684d4bde4c4009ec9184956aff61658b735;hp=e4fd618ff498814145002b2c3f56746b3d172e07 LU-11025 tests: only set crush for newer builds Don't set default DNE hash type to crush if MDS doesn't support it. Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: I1c91f1149d9472bbe1f30ce3f01565835ed7ab01 Reviewed-on: https://review.whamcloud.com/38107 Tested-by: jenkins Reviewed-by: Lai Siyao Reviewed-by: Sergey Cheremencev Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 678ff62..e605fab 100755 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -5218,8 +5218,9 @@ init_param_vars () { fi fi - do_nodes $(comma_list $(mdts_nodes)) \ - "$LCTL set_param lod.*.mdt_hash=crush" + (( MDS1_VERSION <= $(version_code 2.13.52) )) || + do_nodes $(comma_list $(mdts_nodes)) \ + "$LCTL set_param lod.*.mdt_hash=crush" return 0 }