]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: create a new directory to fill the volume space
authorXiubo Li <xiubli@redhat.com>
Tue, 18 Apr 2023 06:58:58 +0000 (14:58 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 18 Apr 2023 14:30:09 +0000 (22:30 +0800)
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>
qa/tasks/cephfs/test_volumes.py

index 02db70e192ff9a25075678d0d360317b33e290ee..496e48d16b1b84227c5928e0528b805015397a50 100644 (file)
@@ -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")