Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/tests/ftest/ior/hard_rebuild.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
"""
(C) Copyright 2020-2022 Intel Corporation.
(C) Copyright 2026 Hewlett Packard Enterprise Development LP

SPDX-License-Identifier: BSD-2-Clause-Patent
"""
from avocado.core.exceptions import TestFail
from ec_utils import ErasureCodeIor


Expand Down Expand Up @@ -42,6 +44,7 @@ def test_ec_ior_hard_online_rebuild(self):

# Kill last server rank
self.rank_to_kill = [self.server_count - 1]
self.log_step(f"Kill last server rank: {self.rank_to_kill}")

# Run only object type which matches the server count and remove other objects
tmp_obj_class = []
Expand All @@ -52,6 +55,7 @@ def test_ec_ior_hard_online_rebuild(self):

# Write IOR data set with different EC object. kill single server while IOR Write phase
# is in progress.
self.log_step(f"Write IOR data set with {self.obj_class} object")
self.ior_write_dataset()

# Do not change the stoneWallingStatusFile during read
Expand All @@ -69,6 +73,20 @@ def test_ec_ior_hard_online_rebuild(self):
self.set_online_rebuild = True
# Kill another server rank
self.rank_to_kill = [self.server_count - 2]
self.log_step(f"Kill another server rank: {self.rank_to_kill}")
# Read IOR data and verify for EC object again EC data was written with +2 parity so after
# killing Two servers data should be intact and no data corruption observed.
self.ior_read_dataset(parity=2)

# Verify the container can be destroyed; retry if necessary
self.log_step(f"Verify the {self.nvme_local_cont} container can be destroyed")
retry = 3
while retry > 0:
try:
self.nvme_local_cont.destroy()
break
except TestFail as error:
retry -= 1
if retry == 0 or 'DER_BUSY' not in str(error):
raise error
self.log.info("Test passed")
2 changes: 1 addition & 1 deletion src/tests/ftest/ior/hard_rebuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ hosts:
test_servers: server-[1-6]
test_clients: 2

timeout: 1000
timeout: 1500

setup:
start_agents_once: false
Expand Down
2 changes: 1 addition & 1 deletion utils/rpms/packaging/Dockerfile.mockbuild
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#

# Pull base image
ARG FVERSION=latest
ARG FVERSION=44
FROM fedora:$FVERSION
# Needed for later use of FVERSION
ARG FVERSION
Expand Down
Loading