From 47f6fc5ceee558dddf082ce007efa1412bc4b952 Mon Sep 17 00:00:00 2001 From: Phil Henderson Date: Thu, 5 Nov 2026 14:58:57 -0500 Subject: [PATCH 1/4] DOAS-19883 test: Retry container destroy on DER_BUSY Verify retry container destroy with DER_BUSY can succeed. Signed-off-by: Phil Henderson --- src/tests/ftest/ior/hard_rebuild.py | 13 +++++++++++++ src/tests/ftest/ior/hard_rebuild.yaml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/tests/ftest/ior/hard_rebuild.py b/src/tests/ftest/ior/hard_rebuild.py index d7d7d18d8c4..ccb0f7bfe14 100644 --- a/src/tests/ftest/ior/hard_rebuild.py +++ b/src/tests/ftest/ior/hard_rebuild.py @@ -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 @@ -72,3 +74,14 @@ def test_ec_ior_hard_online_rebuild(self): # 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 + retry = 3 + while retry > 0: + try: + self.container.destroy() + break + except TestFail as error: + retry -= 1 + if retry == 0 or 'DER_BUSY' not in str(error): + raise error diff --git a/src/tests/ftest/ior/hard_rebuild.yaml b/src/tests/ftest/ior/hard_rebuild.yaml index 32665ab18ad..d9eb9be1ad2 100644 --- a/src/tests/ftest/ior/hard_rebuild.yaml +++ b/src/tests/ftest/ior/hard_rebuild.yaml @@ -8,7 +8,7 @@ hosts: test_servers: server-[1-6] test_clients: 2 -timeout: 1000 +timeout: 1500 setup: start_agents_once: false From d3008c5e628c5011310c89730bf9ed0265d94e5c Mon Sep 17 00:00:00 2001 From: Phil Henderson Date: Thu, 5 Nov 2026 15:21:59 -0500 Subject: [PATCH 2/4] Fix RPM build Fedora version. Signed-off-by: Phil Henderson --- utils/rpms/packaging/Dockerfile.mockbuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/rpms/packaging/Dockerfile.mockbuild b/utils/rpms/packaging/Dockerfile.mockbuild index 5847e6e949e..9ee0e61b6ae 100644 --- a/utils/rpms/packaging/Dockerfile.mockbuild +++ b/utils/rpms/packaging/Dockerfile.mockbuild @@ -6,7 +6,7 @@ # # Pull base image -ARG FVERSION=latest +ARG FVERSION=44 FROM fedora:$FVERSION # Needed for later use of FVERSION ARG FVERSION From 5f13c026ab669c92dcd7c45cbe82ed9ab5de70cd Mon Sep 17 00:00:00 2001 From: Phil Henderson Date: Fri, 6 Nov 2026 09:52:55 -0500 Subject: [PATCH 3/4] Add log steps. Signed-off-by: Phil Henderson --- src/tests/ftest/ior/hard_rebuild.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/ftest/ior/hard_rebuild.py b/src/tests/ftest/ior/hard_rebuild.py index ccb0f7bfe14..b5c2ff6073f 100644 --- a/src/tests/ftest/ior/hard_rebuild.py +++ b/src/tests/ftest/ior/hard_rebuild.py @@ -44,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 = [] @@ -54,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 @@ -71,11 +73,13 @@ 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("Verify the container can be destroyed; retry if necessary") retry = 3 while retry > 0: try: @@ -85,3 +89,4 @@ def test_ec_ior_hard_online_rebuild(self): retry -= 1 if retry == 0 or 'DER_BUSY' not in str(error): raise error + self.log.info("Test passed") From 2f34ff1e4ed6db5a71700ae67d5be6680936e0dd Mon Sep 17 00:00:00 2001 From: Phil Henderson Date: Fri, 6 Nov 2026 12:17:19 -0500 Subject: [PATCH 4/4] Fix container destroy. Signed-off-by: Phil Henderson --- src/tests/ftest/ior/hard_rebuild.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/ftest/ior/hard_rebuild.py b/src/tests/ftest/ior/hard_rebuild.py index b5c2ff6073f..0791193a055 100644 --- a/src/tests/ftest/ior/hard_rebuild.py +++ b/src/tests/ftest/ior/hard_rebuild.py @@ -79,11 +79,11 @@ def test_ec_ior_hard_online_rebuild(self): self.ior_read_dataset(parity=2) # Verify the container can be destroyed; retry if necessary - self.log_step("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.container.destroy() + self.nvme_local_cont.destroy() break except TestFail as error: retry -= 1