openhpc / submissions

OpenHPC Component Submissions Project
8 stars 2 forks source link

Not able to provide a custom configuration directory for nhc-genconf. It always picks /etc/nhc #38

Open naureensaba opened 5 years ago

naureensaba commented 5 years ago

LBNL NHC

The nhc utility has an option to specify the custom configuration directory using the -D option, in order to load the scripts from the custom directory.

Whereas the nhc-genconf utility doesn't have this option. It always loads the '*.nhc' scripts from the /etc/nhc/scripts directory.

If I have configured nhc in a way where I have all my '*.nhc' scripts in the /opt/clustertest/nhc/etc/nhc/scripts directory.

nhc-genconf has the following option: -c Write config to (default: /etc/nhc/nhc.conf.auto)

But I am not able to generate the configuration file using the -c option, as it is expecting the '*.nhc ' scripts to be in the /etc/nhc/scripts directory.

It always gives me the following error: /opt/clustertest/nhc/sbin/nhc-genconf: line 330: nhc_common_unparse_size: command not found /opt/clustertest/nhc/sbin/nhc-genconf: line 334: nhc_common_unparse_size: command not found

adrianreber commented 5 years ago

@naureensaba Could you open your bug report at the ohpc repository (https://github.com/openhpc/ohpc). This repository (submission) is only for new component submission to OpenHPC.