Skip to content

Commit 3d5dd12

Browse files
committed
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 <khiremat@redhat.com>
1 parent 2ccc28f commit 3d5dd12

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

qa/tasks/cephfs/test_subvolume.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,18 @@ def test_subvolume_create_snapshot_inside_new_subvolume_parent(self):
197197
# clean up
198198
self.mount_a.run_shell(['rmdir', 'group/subvol2/dir/.snap/s2'])
199199

200+
def test_subvolume_vxattr_removal_without_setting(self):
201+
"""
202+
To verify that the ceph.dir.subvolume vxattr removal without setting doesn't cause mds crash
203+
"""
204+
205+
# create a subvol
206+
self.mount_a.run_shell(['mkdir', 'group/subvol3'])
207+
self.mount_a.removexattr('group/subvol3', 'ceph.dir.subvolume')
208+
209+
# cleanup
210+
self.mount_a.run_shell(['rm', '-rf', 'group/subvol3'])
211+
200212

201213
class TestSubvolumeReplicated(CephFSTestCase):
202214
CLIENTS_REQUIRED = 1

0 commit comments

Comments
 (0)