From 9435453d796571fdaedac398a82e1302d55727ec Mon Sep 17 00:00:00 2001 From: Patrick Farrell Date: Fri, 7 Jun 2024 11:49:40 -0400 Subject: [PATCH] LU-17919 tests: wait to resolve ENOSPC in sanity 398l Test 398l does not wait to clear up the ENOSPC it induces, so sometimes it causes 398m to fail with ENOSPC. Wait for deletes to resolve this. OCI-bug-id: LFS-288 Note on test-parameters - we can't 'REPEAT' a pair of tests, it would run 398l over and over and then 398m, which doesn't test what we need to test. So instead we just create 5 sessions like this. Test-Parameters: testlist=sanity envdefinitions=ONLY="398l 398m" Test-Parameters: testlist=sanity envdefinitions=ONLY="398l 398m" Test-Parameters: testlist=sanity envdefinitions=ONLY="398l 398m" Test-Parameters: testlist=sanity envdefinitions=ONLY="398l 398m" Test-Parameters: testlist=sanity envdefinitions=ONLY="398l 398m" Test-Parameters: trivial Signed-off-by: Patrick Farrell Change-Id: I2fcc1069a0304bc6edfa576331b6255289b71b98 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55359 Reviewed-by: Andreas Dilger Reviewed-by: Shaun Tancheff Reviewed-by: Oleg Drokin Tested-by: jenkins Tested-by: Maloo --- lustre/tests/sanity.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index b6df61d..a2117d5 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -28594,6 +28594,9 @@ run_test 398k "test enospc on first stripe" test_398l() { # LU-13798 wait_delete_completed wait_mds_ost_sync + # Clean up after the test + stack_trap wait_delete_completed + stack_trap wait_mds_ost_sync # 4 stripe file; we will cause out of space on OST0 # Note the 1M stripe size and the > 1M i/o size mean this ENOSPC -- 1.8.3.1