Whamcloud - gitweb
LU-1895 tests: don't fail mmp test_5 due to race 55/32355/7
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 2 Aug 2018 15:50:42 +0000 (09:50 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 15 Aug 2018 21:38:06 +0000 (21:38 +0000)
commit7e7a4c9402d464d6b3e67a29a1b5c7e02acc4836
tree72640f292082c7e3b02d71a0947172cc2db7ec5d
parentedd1b078941b9cc97e39e0b54b9daabe0e6f2792
LU-1895 tests: don't fail mmp test_5 due to race

In the mmp.sh test_5() mount_after_unmount() testing, it is possible
that the first filesystem unmounts successfully before the second
one starts, and there is no contention for the MMP block.

This caused the test to fail on a regular basis.  However, there is
still value in running this test, since non-MMP race conditions have
previously been seen in this area (OBD device refcount, etc).

Make mount_after_unmount() more robust, only failing if the first
filesystem is still mounted at the same time as the second one.

Author: Andreas Dilger <adilger@whamcloud.com>

Test-Parameters: trivial mdtfilesystemtype=ldiskfs failover=true ostfilesystemtype=ldiskfs osscount=2 mdscount=2 mdtcount=1 austeroptions=-R iscsi=1 testlist=mmp
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: James Nunez <jnunez@whamcloud.com>
Change-Id: I186b9ce0a5a0e1ed6f2b46895fec4a32e73ebbe5
Reviewed-on: https://review.whamcloud.com/32355
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/mmp.sh