From: Alex Zhuravlev Date: Thu, 17 Oct 2024 18:22:11 +0000 (+0300) Subject: LU-18379 tests: wait for stats to expire in conf-sanity/127 X-Git-Tag: 2.16.0~13 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=88bf19702bfd4004f94cb1db6319f32656c79765;p=fs%2Flustre-release.git LU-18379 tests: wait for stats to expire in conf-sanity/127 fs stats are not updated immediately on the client, thus we need to wait. Test-Parameters: env=ONLY=127,ONLY_REPEAT=20 testlist=conf-sanity Test-Parameters: env=ONLY=127,ONLY_REPEAT=20 testlist=conf-sanity Signed-off-by: Alex Zhuravlev Change-Id: I28cf407f9fe4df1f46af8cd88f50670bb8f0d93f Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56726 Tested-by: Maloo Tested-by: jenkins Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 3b7dc9b..9fca587 100755 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -10926,9 +10926,15 @@ test_127() { local osc_tgt="$FSNAME-OST0000-osc-$($LFS getname -i $DIR)" local avail1=($($LCTL get_param -n osc.${osc_tgt}.kbytesavail)) - $LFS setstripe -i 0 $DIR/$tfile || error "failed creating $DIR/$tfile" + wait_delete_completed + $LFS setstripe -i 0 -c1 $DIR/$tfile || { + $LFS df $DIR + $LCTL get_param osc.*.*grant_bytes + error "failed creating $DIR/$tfile" + } dd if=/dev/zero of=$DIR/$tfile bs=1M oflag=direct || true + sleep_maxage local avail2=($($LCTL get_param -n osc.${osc_tgt}.kbytesavail)) if ((avail2 * 100 / avail1 > 1)); then