From fc76d6a5afa96c6e9809dc226b87a69c812b8467 Mon Sep 17 00:00:00 2001 From: Oleg Kulachenko Date: Sun, 24 Sep 2023 19:48:15 +0400 Subject: [PATCH] Add restart before changes Signed-off-by: Oleg Kulachenko --- robot/resources/lib/python_keywords/failover_utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/robot/resources/lib/python_keywords/failover_utils.py b/robot/resources/lib/python_keywords/failover_utils.py index 01e7b21fb..044a4f0c5 100644 --- a/robot/resources/lib/python_keywords/failover_utils.py +++ b/robot/resources/lib/python_keywords/failover_utils.py @@ -144,13 +144,16 @@ def enable_metabase_resync_on_start(cluster: Cluster): file.write(modified_content) logger.debug(f"Modified file content:\n{modified_content}") + with allure.step("Restart docker compose to apply the changes"): + docker_compose_restart_storage_nodes(cluster) + yield with open(file_path, 'w') as file: file.writelines(lines) logger.debug(f"Restored file content:\n{''.join(lines)}") - # Restart docker compose to apply the changes - with allure.step("Restart docker"): + + with allure.step("Restart docker compose to revert the changes"): docker_compose_restart_storage_nodes(cluster) with allure.step(f"Waiting {METABASE_RESYNC_TIMEOUT} seconds for the metabase to synchronize"):