lanl / Pavilion

HPC testing harness
BSD 3-Clause "New" or "Revised" License
16 stars 12 forks source link

slurm_job_handler.py depends on "hostlist" executable #27

Closed cadejager closed 7 years ago

cadejager commented 7 years ago

When I try to run on trinitite (and presumably other cray systems) with slurm I get the following error:

/bin/sh: hostlist: command not found Traceback (most recent call last): File "/var/spool/slurm/job12009/slurm_script", line 156, in sys.exit(main()) File "/var/spool/slurm/job12009/slurm_script", line 101, in main nodes = get_node_list() File "/var/spool/slurm/job12009/slurm_script", line 85, in get_node_list output = subprocess.check_output("hostlist -e $SLURM_NODELIST", shell=True) File "/usr/lib64/python2.7/subprocess.py", line 573, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command 'hostlist -e $SLURM_NODELIST' returned non-zero exit status 127

cadejager commented 7 years ago

@BenCasses I have not fully tested this to make sure it is compatible but I will on Monday. I would appreciate someone else checking that this change still gets an equivalent output.