Ticket 16889

Summary: Issue configuring CliFilterPlugins
Product: Slurm Reporter: Roshni <roshni.kp>
Component: ConfigurationAssignee: Jason Booth <jbooth>
Status: RESOLVED INFOGIVEN QA Contact:
Severity: 4 - Minor Issue    
Priority: ---    
Version: 23.02.1   
Hardware: Linux   
OS: Linux   
Site: Sick Kids Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Roshni 2023-06-05 12:32:41 MDT
Hi Team,

I am trying to enable CliFilterPlugins in our test slurm environment before implementing it in production. I am following the guide -https://slurm.schedmd.com/cli_filter_plugins.html

The lua script is under /etc/slurm:
# ls -l /etc/slurm/ | grep cli
-rwxr-xr-x  1 slurm slurm  893 May 15 15:35 cli_filter.lua
#

The CliFilterPlugins in slurm.conf is pointing to the file:

# grep -i clifilter slurm.conf
CliFilterPlugins=cli_filter/lua
#

Soon after I set the above, all the slurm commands start failing with the error 

# sinfo
sinfo: error: load_plugins: unable to find plugin: serializer/json
Segmentation fault
#

# scontrol reconfigure
scontrol: error: load_plugins: unable to find plugin: serializer/json
Segmentation fault
# 

Kindly let me know if I am missing any steps here?
Do I need to specify a PluginDir parameter in slurm.conf? Or are there any recommended packages that needs to be installed?

Regards,
Roshni
Comment 1 Jason Booth 2023-06-05 13:27:46 MDT
How did you install Slurm, from source or did you roll your own RPMs? Additionally, what favor of Linux are you running in your environment? 

Slurm requires the json-c and json-c-devel packages be installed.
Comment 2 Roshni 2023-06-05 13:41:16 MDT
Hi Jason,

We built the RPMS on our own using - 
# rpmbuild -ta slurm-23.02.1.tar.bz2  --with lua --with mysql

We are running el7:
CentOS Linux release 7.9.2009 (Core)

We have the following installed:
json-c.x86_64                        0.11-4.el7_0                    installed
json-c-devel.x86_64                  0.11-4.el7_0                    @base

I found out that this error occurs if slurm is not compiled with json or yaml (https://github.com/SchedMD/slurm/blob/master/doc/html/faq.shtml)

Would this issue be fixed if we build and install with yaml and json support?
# rpmbuild -ta slurm-23.02.1.tar.bz2  --with lua --with mysql --with json --with yaml $@

Thanks,
Roshni
Comment 3 Jason Booth 2023-06-05 13:44:51 MDT
> # rpmbuild -ta slurm-23.02.1.tar.bz2  --with lua --with mysql --with json --with yaml $@

Yes, this should work assuming those package are installed on your build host.
Comment 4 Roshni 2023-06-05 14:30:55 MDT
Thank you, that fixed the issue. I was able to configure clifilter plugin without issues now.
Comment 5 Jason Booth 2023-06-05 14:36:48 MDT
Resolved