File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments