From: Kotresh HR Date: Fri, 4 Apr 2025 10:55:33 +0000 (+0530) Subject: qa: Add 'ceph.dir.subvolume' removal test X-Git-Tag: v21.0.0~256^2~151^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3d5dd1235316775a9dbfdd225c76da09efe02e31;p=ceph.git qa: Add 'ceph.dir.subvolume' removal test Add 'ceph.dir.subvolume' vxattr removal test when it's not set. Fixes: https://tracker.ceph.com/issues/70794 Signed-off-by: Kotresh HR --- diff --git a/qa/tasks/cephfs/test_subvolume.py b/qa/tasks/cephfs/test_subvolume.py index f67b33da9bad..ed71ed6f4376 100644 --- a/qa/tasks/cephfs/test_subvolume.py +++ b/qa/tasks/cephfs/test_subvolume.py @@ -197,6 +197,18 @@ class TestSubvolume(CephFSTestCase): # clean up self.mount_a.run_shell(['rmdir', 'group/subvol2/dir/.snap/s2']) + def test_subvolume_vxattr_removal_without_setting(self): + """ + To verify that the ceph.dir.subvolume vxattr removal without setting doesn't cause mds crash + """ + + # create a subvol + self.mount_a.run_shell(['mkdir', 'group/subvol3']) + self.mount_a.removexattr('group/subvol3', 'ceph.dir.subvolume') + + # cleanup + self.mount_a.run_shell(['rm', '-rf', 'group/subvol3']) + class TestSubvolumeReplicated(CephFSTestCase): CLIENTS_REQUIRED = 1