summaryrefslogtreecommitdiffstats
path: root/qa
diff options
context:
space:
mode:
authorXiubo Li <xiubli@redhat.com>2023-04-18 08:58:58 +0200
committerXiubo Li <xiubli@redhat.com>2023-04-18 16:30:09 +0200
commitac1de56fcdf57ae44a99ec493d7de93dedca3c82 (patch)
tree9a65dd758308109e9fab25710fb5e6f28cd0870d /qa
parentMerge pull request #50916 from petrutlucian94/avoid_pip (diff)
downloadceph-ac1de56fcdf57ae44a99ec493d7de93dedca3c82.tar.xz
ceph-ac1de56fcdf57ae44a99ec493d7de93dedca3c82.zip
qa: create a new directory to fill the volume space
When trying to filling the volume space by continuing filling multiple files, and when flushing the dirty caps back to MDS the MDS will try to skip updating the parent rstat in 'mds_dirstat_min_interval' to avoid propagating more often than this. That means the quota changes couldn't be broadcasted to the clients in time. So after waiting for 20 seconds, and if we try to write the existing files only the first file could successfully update the parent quota realm in MDS, but this won't increase the total size. 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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/tasks/cephfs/test_volumes.py b/qa/tasks/cephfs/test_volumes.py
index 02db70e192f..496e48d16b1 100644
--- a/qa/tasks/cephfs/test_volumes.py
+++ b/qa/tasks/cephfs/test_volumes.py
@@ -1247,7 +1247,7 @@ class TestSubvolumeGroups(TestVolumesHelper):
# For quota to be enforced
time.sleep(20)
# create 400 files of 1MB to exceed quota
- self._do_subvolume_io(subvolname, subvolume_group=group, number_of_files=400)
+ self._do_subvolume_io(subvolname, subvolume_group=group, create_dir='dir2', number_of_files=400)
except CommandFailedError:
# remove with snapshot retention
self._fs_cmd("subvolume", "rm", self.volname, subvolname, "--group_name", group, "--retain-snapshots")