From ad29a7b981163521e9a4088a3251a4bcfad33d54 Mon Sep 17 00:00:00 2001 From: Itzhak Kave Date: Tue, 30 Jan 2024 15:57:03 +0200 Subject: [PATCH] Wait for the node to reach the NotReady state, and then wait for the nodes to reach the Ready state again Signed-off-by: Itzhak Kave --- tests/functional/z_cluster/nodes/test_nodes_restart_hci.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/functional/z_cluster/nodes/test_nodes_restart_hci.py b/tests/functional/z_cluster/nodes/test_nodes_restart_hci.py index 6953d06367ab..3e4480caaf70 100644 --- a/tests/functional/z_cluster/nodes/test_nodes_restart_hci.py +++ b/tests/functional/z_cluster/nodes/test_nodes_restart_hci.py @@ -149,6 +149,11 @@ def test_nodes_restart(self, cluster_type, nodes, node_type): ocp_node = random.choice(ocp_nodes) nodes.restart_nodes(nodes=[ocp_node]) + logger.info( + f"Wait for the node {ocp_node.name} to reach the status {constants.NODE_NOT_READY}" + ) + wait_for_nodes_status([ocp_node.name], constants.NODE_NOT_READY) + logger.info("Wait for all the nodes to be ready...") wait_for_node_count_to_reach_status(node_count=node_count, node_type=node_type) ceph_health_check()