Whamcloud - gitweb
LU-7529 test: fix tiny problems of tests in conf-sanity.sh 07/17507/11
authorteddy <jjkky@yahoo.com>
Sun, 9 Apr 2017 03:14:33 +0000 (11:14 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 19 Apr 2017 04:45:22 +0000 (04:45 +0000)
1)test_68:
Mount MGS in the end of test if MGS and MDS are seperated.
2)test_75:
Reformat all devices otherwise 76a might fail.

Change-Id: Iee8a5fa1c6acccbae86cdcbe14c8715a71b0ae2b
Signed-off-by: Li Xi <lixi@ddn.com>
Signed-off-by: teddy <jjkky@yahoo.com>
Reviewed-on: https://review.whamcloud.com/17507
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/tests/conf-sanity.sh

index 2b70ab4..abf125c 100755 (executable)
@@ -4734,6 +4734,10 @@ test_68() {
 
        umount_client $MOUNT || error "umount client failed"
 
+       if ! combined_mgs_mds; then
+               start_mgs || error "start mgs failed"
+       fi
+
        start_mdt 1 || error "MDT start failed"
        start_ost || error "Unable to start OST1"
 
@@ -5243,6 +5247,10 @@ test_75() { # LU-2374
 
        add mds1 $opts_mds || error "add mds1 failed for new params"
        add ost1 $opts_ost || error "add ost1 failed for new params"
+       if ! combined_mgs_mds; then
+               stop_mgs || error "stop mgs failed"
+       fi
+       reformat
        return 0
 }
 run_test 75 "The order of --index should be irrelevant"
@@ -5250,6 +5258,10 @@ run_test 75 "The order of --index should be irrelevant"
 test_76a() {
        [[ $(lustre_version_code mgs) -ge $(version_code 2.4.52) ]] ||
                { skip "Need MDS version at least 2.4.52" && return 0; }
+
+       if ! combined_mgs_mds; then
+               start_mgs || error "start mgs failed"
+       fi
        setup
        local MDMB_PARAM="osc.*.max_dirty_mb"
        echo "Change MGS params"