Whamcloud - gitweb
LU-13639 tests: increase limit in sanity-quota t_2 43/45943/3
authorSergey Cheremencev <sergey.cheremencev@hpe.com>
Mon, 27 Dec 2021 16:45:51 +0000 (19:45 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Jan 2022 05:16:32 +0000 (05:16 +0000)
commitc19acc6c2400fdf72ebfd2b07fd1da0bf5e21266
tree1ad8827f18835b956f1dfc0920ccb92da05810bc
parentdd3b5601ec6905b00d07cbcb8c139c46dd555b3b
LU-13639 tests: increase limit in sanity-quota t_2

If limit is equal to the least_qunit, slave target may
preacquire more quota while creating "limit number" of files
causing EDQUOT. Change limit from soft_qunit to 2 soft_qunit.
The patch also changes test behaviour - createmany is devided
to 2 parts. Firstly, it creates (limit-least_qunit) nodes and
check that there is no EDQUOT. Then it creates least_qunit
nodes and ignore the result of creating - it is a valid case
if it hits the limit. And only after that check that we
can't create nodes over quota.

Change-Id: Iad7c1cc05119c8d3e0f1cfc2adffb276d79f18c7
Test-Parameters: testgroup=review-dne-zfs-part-4
Test-Parameters: testlist=sanity-quota env=ONLY=2, ONLY_REPEAT=200
Signed-off-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-on: https://review.whamcloud.com/45943
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh