summaryrefslogtreecommitdiffstats
path: root/qa
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2023-04-18 16:22:37 +0200
committerXiubo Li <xiubli@redhat.com>2023-04-18 16:30:09 +0200
commit7ebd06441a9ffc321c75de494296e2974ea5a6ce (patch)
tree7a04cdf9b6b88033608c7aa004df8a5dd35b73c8 /qa
parentqa: create a new directory to fill the volume space (diff)
downloadceph-7ebd06441a9ffc321c75de494296e2974ea5a6ce.tar.xz
ceph-7ebd06441a9ffc321c75de494296e2974ea5a6ce.zip
qa: wait for 100 seconds to make sure the quota to be enforced
The worst case in kclient the dirty caps will be held for 60 seconds, and also the MDS may defer updating the directory rstat for 5 seconds, which is per tick, maybe longer if needs to wait for mdlog to flush. Fixes: https://tracker.ceph.com/issues/59349 Signed-off-by: Xiubo Li <xiubli@redhat.com>
Diffstat (limited to 'qa')
-rw-r--r--qa/tasks/cephfs/test_volumes.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/qa/tasks/cephfs/test_volumes.py b/qa/tasks/cephfs/test_volumes.py
index 496e48d16b1..379c175e39b 100644
--- a/qa/tasks/cephfs/test_volumes.py
+++ b/qa/tasks/cephfs/test_volumes.py
@@ -1244,8 +1244,10 @@ class TestSubvolumeGroups(TestVolumesHelper):
try:
# write two files of 1MB file to exceed the quota
self._do_subvolume_io(subvolname, subvolume_group=group, create_dir='dir1', number_of_files=2)
- # For quota to be enforced
- time.sleep(20)
+ # For quota to be enforced. Just wait for 100 seconds because the worst case in kclient the
+ # dirty caps will be held for 60 seconds, and also the MDS may defer updating the dir rstat
+ # for 5 seconds, which is per tick, maybe longer if need to wait for mdlog to flush.
+ time.sleep(100)
# create 400 files of 1MB to exceed quota
self._do_subvolume_io(subvolname, subvolume_group=group, create_dir='dir2', number_of_files=400)
except CommandFailedError: