Skip to content

Commit

Permalink
Increase node drain command timeout in TestNodesMaintenance (#3300)
Browse files Browse the repository at this point in the history
* Increase node drain command timeout in TestNodesMaintenance

Signed-off-by: Elad Ben Aharon <[email protected]>

black

Signed-off-by: Elad Ben Aharon <[email protected]>

* Fix

Signed-off-by: Elad Ben Aharon <[email protected]>
  • Loading branch information
ebenahar authored Nov 17, 2020
1 parent 211ad67 commit 65b874f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ocs_ci/ocs/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ def drain_nodes(node_names):
Args:
node_names (list): The names of the nodes
Raises:
TimeoutExpired: in case drain command fails to complete in time
"""
ocp = OCP(kind="node")
node_names_str = " ".join(node_names)
Expand All @@ -171,7 +174,7 @@ def drain_nodes(node_names):
ocp.exec_oc_cmd(
f"adm drain {node_names_str} --force=true --ignore-daemonsets "
f"--delete-local-data",
timeout=1200,
timeout=1800,
)
except TimeoutExpired:
ct_pod = pod.get_ceph_tools_pod()
Expand Down

0 comments on commit 65b874f

Please sign in to comment.