From a26f8e9c8008f306e874eb74dad1134c49b7949d Mon Sep 17 00:00:00 2001 From: Yaroslava Lukoyanova Date: Fri, 26 May 2023 10:05:12 +0300 Subject: [PATCH] Added wait_for_node_to_be_ready to starting stopped storage nodes --- .../storage/controllers/cluster_state_controller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frostfs_testlib/storage/controllers/cluster_state_controller.py b/src/frostfs_testlib/storage/controllers/cluster_state_controller.py index 34f027f..7782e64 100644 --- a/src/frostfs_testlib/storage/controllers/cluster_state_controller.py +++ b/src/frostfs_testlib/storage/controllers/cluster_state_controller.py @@ -5,6 +5,7 @@ from frostfs_testlib.reporter import get_reporter from frostfs_testlib.shell import CommandOptions, Shell from frostfs_testlib.steps import epoch from frostfs_testlib.storage.cluster import Cluster, ClusterNode, StorageNode +from frostfs_testlib.steps.node_management import wait_for_node_to_be_ready from frostfs_testlib.storage.controllers.disk_controller import DiskController from frostfs_testlib.testing.test_control import run_optionally, wait_for_success from frostfs_testlib.utils.failover_utils import ( @@ -104,6 +105,7 @@ class ClusterStateController: def start_stopped_storage_services(self): for node in self.stopped_storage_nodes: node.start_service() + wait_all_storage_nodes_returned(self.shell, self.cluster) self.stopped_storage_nodes = [] @run_optionally(optionals.OPTIONAL_FAILOVER_ENABLED)