]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephfs: create enough subvolumes 40688/head
authorRamana Raja <rraja@redhat.com>
Tue, 30 Mar 2021 19:31:46 +0000 (15:31 -0400)
committersinguliere <singuliere@autistici.org>
Fri, 9 Apr 2021 05:34:54 +0000 (07:34 +0200)
... in a subvolume group so that the desired number of ephmerally pinned
subtrees are created for the subvolume group, which has the distributed
ephemeral pin policy set on it.

Fixes: https://tracker.ceph.com/issues/48411
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit 433b70a48349b7f7f7ef83dfa1d4b4c067e16d96)

qa/tasks/cephfs/test_volumes.py

index d82a1868531ed2ca88dadf7fcd09c61319021f0c..a759d55ec3a09849b3ee26d0d11ec7d1c4f23085 100644 (file)
@@ -698,7 +698,7 @@ class TestSubvolumeGroups(TestVolumesHelper):
         group = "pinme"
         self._fs_cmd("subvolumegroup", "create", self.volname, group)
         self._fs_cmd("subvolumegroup", "pin", self.volname, group, "distributed", "True")
-        subvolumes = self._generate_random_subvolume_name(10)
+        subvolumes = self._generate_random_subvolume_name(50)
         for subvolume in subvolumes:
             self._fs_cmd("subvolume", "create", self.volname, subvolume, "--group_name", group)
         self._wait_distributed_subtrees(2 * 2, status=status, rank="all")