Skip to content

Slurm resource manager detected incorrectly as NHC_RM="pbs" #20

@OleHolmNielsen

Description

@OleHolmNielsen

I've installed the RPM lbnl-nhc-1.4.2-1.el7.noarch.rpm on a new cluster which is using the SLURM resource manager. The NHC_RM is unfortunately autodetected as "pbs" because function nhcmain_find_rm() contains this code:
# Search PATH for commands
if type -a -p -f -P pbsnodes >&/dev/null ; then
NHC_RM="pbs"
The problem is that the SLURM (current version 16.05.2) RPM package "slurm-torque" contains a file /usr/bin/pbsnodes for convenience/compatibility reasons.
My suggestion is to replace "pbsnodes" in function nhcmain_find_rm() by "qmgr" which presumably wouldn't exist on a SLURM system:
if type -a -p -f -P qmgr >&/dev/null ; then
NHC_RM="pbs"

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions