def test_cephfs_mirror_remote_snap_corrupt_fails_synced_snapshot(self):
"""
- That making manual changes to the remote .snap directory shows 'peer status' state: "failed"
+ That making changes to the remote .snap directory shows 'peer status' state: "failed"
for a synced snapshot and then restores to "idle" when those changes are reverted.
"""
- log.debug('reconfigure client auth caps')
- self.get_ceph_cmd_result(
- 'auth', 'caps', "client.{0}".format(self.mount_b.client_id),
- 'mds', 'allow rwps',
- 'mon', 'allow r',
- 'osd', 'allow rw pool={0}, allow rw pool={1}'.format(
- self.backup_fs.get_data_pool_name(),
- self.backup_fs.get_data_pool_name()))
- log.debug(f'mounting filesystem {self.secondary_fs_name}')
- self.mount_b.umount_wait()
- self.mount_b.mount_wait(cephfs_name=self.secondary_fs_name)
-
+ self.setup_mount_b(mds_perm='rwps')
self.enable_mirroring(self.primary_fs_name, self.primary_fs_id)
peer_spec = "client.mirror_remote@ceph"
self.peer_add(self.primary_fs_name, self.primary_fs_id, peer_spec, self.secondary_fs_name)