From: Andreas Dilger Date: Wed, 11 Sep 2019 21:47:03 +0000 (-0600) Subject: LU-12753 tests: wait for mds2 recovery in sanity 278 X-Git-Tag: 2.12.90~111 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=ee809615178d2fdbf6f2004ec871d04c2cfbca7e;hp=f87a7f2656ceff174a00933a170032f093ecc72d;ds=sidebyside LU-12753 tests: wait for mds2 recovery in sanity 278 At the end of sanity.sh test_278() the mds2 facet is remounted. However, test_300a() which runs immediately afterward expects all MDTs to be available, and occasionally fails creating a fully-striped directory with: stripe_count is 1, expect 2 because the mds2 facet has not finished mounting at mkdir time. Add a wait at the end of test_278() to ensure that mds2 has finished mounting so that it doesn't affect any later tests. Test-Parameters: trivial envdefinitions=ONLY=270-300 mdscount=1 mdtcount=2 Signed-off-by: Andreas Dilger Change-Id: I9421101be6394288ccd4ce5777d118523a3ebbe5 Reviewed-on: https://review.whamcloud.com/36167 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Wei Liu Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 2735861..80ec83a 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -18841,6 +18841,7 @@ test_278() { do_facet mds2 $LCTL set_param fail_loc=0 start mds2 $(mdsdevname 2) $MDS_MOUNT_OPTS + wait_recovery_complete mds2 } run_test 278 "Race starting MDS between MDTs stop/start"