From 683398191252925af2abf54353cd8795723ac385 Mon Sep 17 00:00:00 2001 From: Ken Cain Date: Tue, 30 Jun 2026 13:35:38 -0400 Subject: [PATCH] DAOS-19149 test: interactive.py, more rebuild stop attempts (#18573) After a rank exclusion, to wait for the rebuild to start (and to interactively stop it), the test uses a limited number of dmg pool rebuild stop command invocations until the command no longer reports DER_NONEXIST. A 3 second delay is inserted between commands. In one CI daily test run, the timing was just short, missing the actual pool rebuild start by a fraction of a second. Increase the number of tries to reduce the likelihood of a test failure due to close timing. Test-tag: test_rebuild_interactive Test-repeat: 10 Skip-unit-tests: true Skip-fault-injection-test: true Skip-test-rpms: true Signed-off-by: Kenneth Cain --- src/tests/ftest/rebuild/interactive.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/ftest/rebuild/interactive.py b/src/tests/ftest/rebuild/interactive.py index 24397ddca5f..43f3ce0e74c 100644 --- a/src/tests/ftest/rebuild/interactive.py +++ b/src/tests/ftest/rebuild/interactive.py @@ -103,12 +103,12 @@ def __run_rebuild_interactive(self, pool, cont_ior, ior, pool.wait_for_rebuild_to_start(interval=1) self.log_step(f'{exclude_method} - Manually stop rebuild') - for i in range(3): + for i in range(4): try: pool.rebuild_stop() break except CommandFailure as error: - if i == 2 or 'DER_NONEXIST' not in str(error): + if i == 3 or 'DER_NONEXIST' not in str(error): raise self.log.info('Assuming rebuild is not started yet. Retrying in 3 seconds...') time.sleep(3) @@ -161,12 +161,12 @@ def __run_rebuild_interactive(self, pool, cont_ior, ior, pool.wait_for_rebuild_to_start(interval=1) self.log_step(f'{reint_method} - Manually stop rebuild') - for i in range(3): + for i in range(4): try: pool.rebuild_stop() break except CommandFailure as error: - if i == 2 or 'DER_NONEXIST' not in str(error): + if i == 3 or 'DER_NONEXIST' not in str(error): raise self.log.info('Assuming rebuild is not started yet. Retrying in 3 seconds...') time.sleep(3)