From 334d780617561c66c91697fb1681ce24b5379387 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Thu, 20 Apr 2023 16:13:54 -0600 Subject: [PATCH] LU-10733 tests: increase conf-sanity/106 OST size conf-sanity test_106 is trying to create ~64k files, but OST0000 only has about 48k objects in this case, so the file creates are failing during the test. This makes the test somewhat unreliable and hitting errors not related to what was originally intended (llog wrap handling). Increase the OSTSIZE for this test to handle the number of objects needed by the test so it can run more reliably. Test-Parameters: trivial Test-Parameters: testlist=conf-sanity env=ONLY=106 Test-Parameters: testlist=conf-sanity env=ONLY=106 Test-Parameters: testlist=conf-sanity env=ONLY=106 Test-Parameters: testlist=conf-sanity env=ONLY=106 Test-Parameters: testlist=conf-sanity env=ONLY=106 Test-Parameters: testlist=conf-sanity env=ONLY=106 Signed-off-by: Andreas Dilger Change-Id: Ie33825801172ea565d9d1d5fb81595d2cad65677 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50732 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Alex Deiter Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- lustre/tests/conf-sanity.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index af8918c..ba1e892 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -8346,9 +8346,13 @@ run_test 105 "check file creation for ro and rw bind mnt pt" test_106() { local repeat=5 + local creates=64768 # one full plain llog + # ensure there are enough inodes in the filesystem + (( OSTSIZE < (creates + 1024) * 8)) && OSTSIZE=$(((creates + 1024) * 8)) reformat setup_noconfig + lfs df -i mkdir -p $DIR/$tdir || error "create $tdir failed" do_nodes $(comma_list $(osts_nodes)) $LCTL set_param \ seq.*OST*-super.width=$DATA_SEQ_MAX_WIDTH @@ -8357,13 +8361,10 @@ test_106() { do_facet mds1 $LCTL set_param fail_loc=0x1312 fail_val=$repeat for ((i = 1; i <= $repeat; i++)); do - - #one full plain llog - createmany -o $DIR/$tdir/f- 64768 - - createmany -u $DIR/$tdir/f- 64768 + createmany -o $DIR/$tdir/f- $creates || lfs df -i + createmany -u $DIR/$tdir/f- $creates + wait_delete_completed $((TIMEOUT * 7)) done - wait_delete_completed $((TIMEOUT * 7)) #ASSERTION osp_sync_thread() ( thread->t_flags != SVC_RUNNING ) failed #shows that osp code is buggy do_facet mds1 $LCTL set_param fail_loc=0 fail_val=0 -- 1.8.3.1