File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
tests/integration-tests/tests/common Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -502,6 +502,11 @@ def get_compute_ip_to_num_files(remote_command_executor, slurm_commands):
502
502
instance_ip_to_num_files = {}
503
503
for node_name in compute_node_names :
504
504
compute_node_instance_ip = slurm_commands .get_node_addr (node_name )
505
+ install_cmd = (
506
+ f"ssh -q { compute_node_instance_ip } 'sudo yum install -y lsof "
507
+ "|| sudo apt-get update && sudo apt-get install -y lsof'"
508
+ )
509
+ remote_command_executor .run_remote_command (install_cmd , raise_on_error = False )
505
510
lsof_cmd = f"ssh -q { compute_node_instance_ip } 'sudo lsof -p $(pgrep computemgtd) | wc -l'"
506
511
num_files = remote_command_executor .run_remote_command (lsof_cmd ).stdout
507
512
instance_ip_to_num_files [compute_node_instance_ip ] = num_files
You can’t perform that action at this time.
0 commit comments