This patch adds Lustre version check codes into conf-sanity test
41c to make the test interoperate with servers that do not have
commit
166c5ba95cb2a4771317e030a3649e4480c8cbad.
Test-Parameters: alwaysuploadlogs envdefinitions=ONLY=41c \
ossjob=lustre-b2_5 mdsjob=lustre-b2_5 ossbuildno=86 mdsbuildno=86 \
testlist=conf-sanity
Signed-off-by: Jian Yu <jian.yu@intel.com>
Change-Id: Ifa02e9ef1a137257790a399d75cce1f703fb0d6b
Reviewed-on: http://review.whamcloud.com/12376
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
run_test 41b "mount mds with --nosvc and --nomgs on first mount"
test_41c() {
+ local server_version=$(lustre_version_code $SINGLEMDS)
+
+ [[ $server_version -ge $(version_code 2.6.52) ]] ||
+ [[ $server_version -ge $(version_code 2.5.26) &&
+ $server_version -lt $(version_code 2.5.50) ]] ||
+ [[ $server_version -ge $(version_code 2.5.4) &&
+ $server_version -lt $(version_code 2.5.11) ]] ||
+ { skip "Need MDS version 2.5.4+ or 2.5.26+ or 2.6.52+"; return; }
+
cleanup
# MDT concurent start
#define OBD_FAIL_TGT_DELAY_CONNECT 0x703