From 5cafbd6191510b32176764590a3218f13bc39381 Mon Sep 17 00:00:00 2001 From: mulhern Date: Mon, 21 Oct 2024 13:24:40 -0400 Subject: [PATCH] Drop raid_meta_allocs checks Signed-off-by: mulhern --- testlib/infra.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/testlib/infra.py b/testlib/infra.py index 30b4deb..ed92cd8 100644 --- a/testlib/infra.py +++ b/testlib/infra.py @@ -269,29 +269,6 @@ def _check_crypt_meta_allocs(self, metadata): self.assertEqual(crypt_meta_allocs[0], 0) self.assertGreater(crypt_meta_allocs[1], 0) - def _check_raid_meta_allocs(self, metadata): - """ - Check that all raid_meta_allocs exist and have non-zero length. - - RAID meta_allocs should start immediately after Stratis metadata ends. - """ - for raid_meta_allocs in [ - a["raid_meta_allocs"] - for a in metadata["backstore"]["data_tier"]["blockdev"]["devs"] - ]: - self.assertIsNotNone(raid_meta_allocs) - self.assertIsInstance(raid_meta_allocs, list) - self.assertEqual(len(raid_meta_allocs), 1) - - raid_meta_allocs = raid_meta_allocs[0] - self.assertIsInstance(raid_meta_allocs, list) - - raid_meta_alloc_start = Range(raid_meta_allocs[0], 512) - raid_meta_alloc_len = Range(raid_meta_allocs[1], 512) - - self.assertEqual(raid_meta_alloc_start, STRATIS_METADATA_LEN) - self.assertGreater(raid_meta_alloc_len, Range(0)) - def _check_integrity_meta_allocs(self, metadata): """ Check that all integrity_meta_allocs exist and have non-zero length. @@ -342,8 +319,6 @@ def run_check(self, stop_time): self._check_encryption_information_consistency(object_path, written) self._check_crypt_meta_allocs(written) - self._check_raid_meta_allocs(written) - self._check_integrity_meta_allocs(written) else: