Whamcloud - gitweb
LU-9487 tests: stop primary and failover services in mmp test 1 53/27253/3
authorJian Yu <jian.yu@intel.com>
Tue, 23 May 2017 18:37:13 +0000 (11:37 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 3 Jun 2017 03:57:20 +0000 (03:57 +0000)
In mmp.sh test_1(), there is a race of starting the primary and
failover services at the same time. Since it's likely the failover
service is started before the primary one, we need check and stop
the failover service.

Test-Parameters: trivial \
envdefinitions=MMP_EXCEPT=5 \
clientcount=4 osscount=2 mdscount=2 mdtcount=1 \
austeroptions=-R failover=true iscsi=1 \
testlist=mmp

Change-Id: I945f4eb7839400e75b372fc0cc9ad9455ccb5668
Signed-off-by: Jian Yu <jian.yu@intel.com>
Reviewed-on: https://review.whamcloud.com/27253
Tested-by: Jenkins
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/mmp.sh

index db5ce5a..4b0b02f 100755 (executable)
@@ -429,10 +429,11 @@ mmp_init
 
 # Test 1 - two mounts at the same time.
 test_1() {
-    check_failover_pair || return 0
+       check_failover_pair || return 0
 
-    mount_after_interval 0 0 || return ${PIPESTATUS[0]}
-    stop_services primary || return ${PIPESTATUS[0]}
+       mount_after_interval 0 0 || return ${PIPESTATUS[0]}
+       stop_services primary || return ${PIPESTATUS[0]}
+       stop_services failover || return ${PIPESTATUS[0]}
 }
 run_test 1 "two mounts at the same time"