]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: Disable referent inodes for a few test_strays tests
authorKotresh HR <khiremat@redhat.com>
Sun, 2 Mar 2025 14:10:58 +0000 (19:40 +0530)
committerKotresh HR <khiremat@redhat.com>
Tue, 4 Mar 2025 11:16:00 +0000 (16:46 +0530)
It's disabled for following tests

 test_hardlink_reintegration
 test_mv_hardlink_cleanup

The stray perf count numbers validation in above tests don't match
with referent inodes enabled because referent inodes becomes a stray
whenever hardlink is deleted or stray is reintegrated, so disable
referent inodes. The same test for referent inodes is added at
qa/tasks/cephfs/test_referent.py adjusting the perf counters for
referent inodes.

Fixes: https://tracker.ceph.com/issues/69339
Signed-off-by: Kotresh HR <khiremat@redhat.com>
qa/tasks/cephfs/test_strays.py

index 2fe5a6aafc065bf0bde21768bb999fdcb1d7890a..29fd952b01852d7eb2803ac4784b96be9e777dda 100644 (file)
@@ -380,7 +380,15 @@ class TestStrays(CephFSTestCase):
         in reintegration of inode into the previously-remote dentry,
         rather than lingering as a stray indefinitely.
         """
+
+        # stray perf count numbers in the test don't match when referent inode feature
+        # is enabled because referent inodes becomes a stray whenever hardlink is
+        # deleted or stray is reintegrated, so disable referent inodes here. The
+        # same test for referent inodes is added at qa/tasks/cephfs/test_referent.py
+        self.fs.set_allow_referent_inodes(False)
+
         # Write some bytes to file_a
+
         size_mb = 8
         self.mount_a.run_shell(["mkdir", "dir_1"])
         self.mount_a.write_n_mb("dir_1/file_a", size_mb)
@@ -542,6 +550,13 @@ class TestStrays(CephFSTestCase):
         then we make a stray for B which is then reintegrated
         into one of his hardlinks.
         """
+
+        # stray perf count numbers in the test don't match when referent inode feature
+        # is enabled because referent inodes becomes a stray whenever hardlink is
+        # deleted or stray is reintegrated, so disable referent inodes here. The
+        # same test for referent inodes is added at qa/tasks/cephfs/test_referent.py
+        self.fs.set_allow_referent_inodes(False)
+
         # Create file_a, file_b, and a hardlink to file_b
         size_mb = 8
         self.mount_a.write_n_mb("file_a", size_mb)