From: Xiubo Li Date: Tue, 18 Apr 2023 06:58:58 +0000 (+0800) Subject: qa: create a new directory to fill the volume space X-Git-Tag: v19.0.0~1011^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ac1de56fcdf57ae44a99ec493d7de93dedca3c82;p=ceph.git 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 --- diff --git a/qa/tasks/cephfs/test_volumes.py b/qa/tasks/cephfs/test_volumes.py index 02db70e192ff..496e48d16b1b 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")