2828# hardwiring the reservation id here when we need it.
2929CAPACITY_BLOCK_RESERVATION_ID = "cr-123456789"
3030
31- # We use 0.0.0.0 as placeholder IPs just to get IMEX started.
31+ # We use placeholder IPs just to get IMEX started.
3232# These values are hardwired in the cookbook.
33- FAKE_IPS = ["0.0.0.0 " , "0.0.0.0 " ]
33+ FAKE_IPS = ["172.31.51.93 " , "172.31.48.43 " ]
3434
3535
3636def submit_job_imex_status (rce : RemoteCommandExecutor , queue : str , max_nodes : int = 1 ):
@@ -52,7 +52,8 @@ def assert_imex_nodes_config_is_correct(rce: RemoteCommandExecutor, launch_templ
5252 logging .info (f"Checking IMEX nodes config contains the expected nodes: { expected_ips } " )
5353 imex_nodes_config_file = f"/opt/parallelcluster/shared/nvidia-imex/nodes_config_{ launch_template_id } .cfg"
5454 imex_config_content = read_remote_file (rce , imex_nodes_config_file )
55- actual_ips = [ip .strip () for ip in imex_config_content .strip ().split ("\n " )]
55+ imex_config_content_clean = [line for line in imex_config_content .split ("\n " ) if not line .strip ().startswith ("#" )]
56+ actual_ips = [ip .strip () for ip in imex_config_content_clean ]
5657 assert_that (actual_ips ).contains_only (* expected_ips )
5758 logging .info (f"IMEX nodes config { imex_nodes_config_file } contains the expected nodes: { expected_ips } " )
5859
@@ -263,11 +264,6 @@ def test_gb200(
263264 )
264265 bucket .upload_file (head_node_start_script_rendered , headnode_start_filename )
265266
266- # TODO: Remove after testing: BEGIN: added compute custom action to force the configuraiton of IMEX
267- compute_configured_filename = "compute_node_configured.sh"
268- bucket .upload_file (str (test_datadir / compute_configured_filename ), compute_configured_filename )
269- # TODO: Remove after testing: END
270-
271267 queue_with_imex = "q1"
272268 compute_resource_with_imex = "cr1"
273269 queue_without_imex = "q2"
@@ -276,7 +272,6 @@ def test_gb200(
276272 cluster_config = pcluster_config_reader (
277273 bucket_name = bucket_name ,
278274 head_node_start_script = headnode_start_filename ,
279- compute_node_configured_script = compute_configured_filename ,
280275 max_queue_size = max_queue_size ,
281276 queue_with_imex = queue_with_imex ,
282277 compute_resource_with_imex = compute_resource_with_imex ,
0 commit comments