Whamcloud - gitweb
LU-10733 tests: increase conf-sanity/106 OST size 32/50732/2
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 20 Apr 2023 22:13:54 +0000 (16:13 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 9 May 2023 05:48:27 +0000 (05:48 +0000)
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 <adilger@whamcloud.com>
Change-Id: Ie33825801172ea565d9d1d5fb81595d2cad65677
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50732
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/conf-sanity.sh

index af8918c..ba1e892 100644 (file)
@@ -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