Whamcloud - gitweb
LU-10733 tests: increase conf-sanity/106 OST size 18/56918/2
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 7 Nov 2024 20:38:57 +0000 (12:38 -0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 18 Nov 2024 17:42:58 +0000 (17:42 +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.

Lustre-change: https://review.whamcloud.com/50732
Lustre-commit: 334d780617561c66c91697fb1681ce24b5379387

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

Test-Parameters: optional env=SLOW=yes,ENABLE_QUOTA=yes \
  clientdistro=el8.9 serverdistro=el8.10 testlist=conf-sanity

Test-Parameters: optional env=SLOW=yes,ENABLE_QUOTA=yes \
  clientdistro=ubuntu2204 serverdistro=el8.9 testlist=conf-sanity

Test-Parameters: optional env=SLOW=yes,ENABLE_QUOTA=yes \
  clientdistro=sles15sp5 serverdistro=el8.9 testlist=conf-sanity

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ie33825801172ea565d9d1d5fb81595d2cad65677
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56918
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/conf-sanity.sh

index 07b381a..7326e7e 100755 (executable)
@@ -8172,22 +8172,23 @@ 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"
        lfs setstripe -c 1 -i 0 $DIR/$tdir
 #define OBD_FAIL_CAT_RECORDS                        0x1312
        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