From bc196b7e63ac2f06b6b6d89981ff156c8f3900f0 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 29 Jan 2025 15:27:20 -0500 Subject: [PATCH] qa: make the directory non-empty to force migration 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 --- qa/tasks/cephfs/test_data_scan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qa/tasks/cephfs/test_data_scan.py b/qa/tasks/cephfs/test_data_scan.py index 6c75d2144579..64f8d691c4fe 100644 --- a/qa/tasks/cephfs/test_data_scan.py +++ b/qa/tasks/cephfs/test_data_scan.py @@ -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: -- 2.47.3