]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: make the directory non-empty to force migration
authorPatrick Donnelly <pdonnell@ibm.com>
Wed, 29 Jan 2025 20:27:20 +0000 (15:27 -0500)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 30 Jan 2025 02:12:54 +0000 (21:12 -0500)
rank 0 will not migrate the directory until it is non-empty. And creating a
file and promptly deleting is not reliable; the vstart_runner.py test will just
loop forever.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
qa/tasks/cephfs/test_data_scan.py

index 6c75d2144579a5841c9fb417480aaafa0e76938d..64f8d691c4fefa7e352f4cee16bc1f4141051cd3 100644 (file)
@@ -722,10 +722,10 @@ class TestDataScan(CephFSTestCase):
         mds0_id = active_mds_names[0]
         mds1_id = active_mds_names[1]
 
-        self.mount_a.run_shell(["mkdir", "dir1"])
+        self.mount_a.run_shell_payload("mkdir -p dir1/dir2")
         dir_ino = self.mount_a.path_to_ino("dir1")
         self.mount_a.setfattr("dir1", "ceph.dir.pin", "1")
-        # wait for subtree migration
+        self._wait_subtrees([('/dir1', 1)], rank=1)
 
         file_ino = 0;
         while True: