Add 'ceph.dir.subvolume' vxattr removal test
when it's not set.
Fixes: https://tracker.ceph.com/issues/70794
Signed-off-by: Kotresh HR <khiremat@redhat.com>
# 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