Skip to content

Commit ab64bfa

Browse files
committed
qa: add test to verify blocking of osd pool mksnap for fs pools
Signed-off-by: Milind Changire <[email protected]>
1 parent 6203fe1 commit ab64bfa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

qa/tasks/cephfs/test_snapshots.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,16 @@ def test_disallow_monitor_managed_snaps_for_fs_pools(self):
550550
with self.assertRaises(CommandFailedError):
551551
self.fs.rados(["mksnap", "snap2"], pool=self.fs.get_metadata_pool_name())
552552

553+
with self.assertRaises(CommandFailedError):
554+
test_pool_name = self.fs.get_data_pool_name()
555+
base_cmd = f'osd pool mksnap {test_pool_name} snap3'
556+
self.run_cluster_cmd(base_cmd)
557+
558+
with self.assertRaises(CommandFailedError):
559+
test_pool_name = self.fs.get_metadata_pool_name()
560+
base_cmd = f'osd pool mksnap {test_pool_name} snap4'
561+
self.run_cluster_cmd(base_cmd)
562+
553563
def test_attaching_pools_with_snaps_to_fs_fails(self):
554564
"""
555565
Test that attempt to attach pool with snapshots to an fs fails

0 commit comments

Comments
 (0)