From ac1de56fcdf57ae44a99ec493d7de93dedca3c82 Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Tue, 18 Apr 2023 14:58:58 +0800 Subject: [PATCH] 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 --- qa/tasks/cephfs/test_volumes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/cephfs/test_volumes.py b/qa/tasks/cephfs/test_volumes.py index 02db70e192ff9..496e48d16b1b8 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") -- 2.39.5