Skip to content

Commit

Permalink
Drop raid_meta_allocs checks
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Oct 21, 2024
1 parent 8adc5bc commit 5cafbd6
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions testlib/infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 5cafbd6

Please sign in to comment.