Skip to content

Commit

Permalink
Wait for the node to reach the NotReady state, and then wait for the …
Browse files Browse the repository at this point in the history
…nodes to reach the Ready state again

Signed-off-by: Itzhak Kave <[email protected]>
  • Loading branch information
Itzhak Kave committed Jan 30, 2024
1 parent 552a3e3 commit ad29a7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/functional/z_cluster/nodes/test_nodes_restart_hci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit ad29a7b

Please sign in to comment.