Skip to content

Commit fb2f0c6

Browse files
authored
Merge pull request #13400 from vavuthu/mcp_timeout_for_enable_huge_pages
increase timeout based on nodes
2 parents 65d59c4 + 64db94b commit fb2f0c6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

ocs_ci/utility/utils.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4773,13 +4773,21 @@ def enable_huge_pages():
47734773
# Wait for Master nodes ready state when Compact mode 3M 0W config
47744774
from ocs_ci.ocs.node import get_nodes
47754775

4776+
num_nodes = (
4777+
config.ENV_DATA["worker_replicas"]
4778+
+ config.ENV_DATA["master_replicas"]
4779+
+ config.ENV_DATA.get("infra_replicas", 0)
4780+
)
4781+
timeout = 1200
47764782
if not len(get_nodes(node_type=constants.WORKER_MACHINE)):
47774783
wait_for_machineconfigpool_status(
4778-
node_type=constants.MASTER_MACHINE, timeout=1200
4784+
node_type=constants.MASTER_MACHINE, timeout=timeout
47794785
)
47804786
else:
4787+
if num_nodes >= 6:
4788+
timeout = 2400
47814789
wait_for_machineconfigpool_status(
4782-
node_type=constants.WORKER_MACHINE, timeout=1200
4790+
node_type=constants.WORKER_MACHINE, timeout=timeout
47834791
)
47844792

47854793

0 commit comments

Comments
 (0)