Ticket 17731

Summary: yaml support in slurm.spec
Product: Slurm Reporter: Nate Rini <nate>
Component: OtherAssignee: Nate Rini <nate>
Status: RESOLVED FIXED QA Contact:
Severity: 4 - Minor Issue    
Priority: --- CC: mcmullan, Ole.H.Nielsen
Version: 23.11.x   
Hardware: Linux   
OS: Linux   
See Also: https://bugs.schedmd.com/show_bug.cgi?id=17673
Site: DTU Physics Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: 23.11.0rc1 Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Nate Rini 2023-09-20 12:50:38 MDT
splitting out issues related to RPM from bug#17673 as those changes need to goto Slurm-23.11:

(In reply to Ole.H.Nielsen@fysik.dtu.dk from comment #10)
> I looked at the Slurm configure script and found that it determines whether
> libyaml is installed or not by searching for the yaml.h file, not the
> library itself.
> 
> On CentOS and RHEL (and clones) the yaml.h file is only installed with the
> libyaml-devel RPM package:
> 
> $ rpm -qf /usr/include/yaml.h
> libyaml-devel-0.1.4-11.el7_0.x86_64
> 
> Likewise, I suppose that the libjwt-devel RPM package must also be
> installed. 
> 
> I've rebuilt Slurm RPM packages with these prerequisites, and "sinfo --yaml"
> now works correctly.
> 
> The core dump reported in comment 0 should nevertheless be fixed.  It occurs
> when the libyaml-devel RPM package wasn't installed when building Slurm RPMs.
> 
> I would like to ask that the download page
> https://slurm.schedmd.com/download.html#json should be updated with an extra
> paragraph at the end:
> 
> For RPM based installations the development libraries should be installed by:
> 
> $ yum install http-parser-devel json-c-devel libjwt-devel libyaml-devel
> 
> Thanks,
> Ole

(In reply to Ole.H.Nielsen@fysik.dtu.dk from comment #11)
> It would also be good to add this documentation to
> https://slurm.schedmd.com/faq.html#json_serializer
> 
> For RPM based installations the development libraries should be installed by:
> 
> $ yum install http-parser-devel json-c-devel libjwt-devel libyaml-devel
Comment 8 Nate Rini 2023-10-10 09:19:07 MDT
Ole

Added new `--with yaml` argument as an option to the RPM build for Slurm-23.11:
> https://github.com/SchedMD/slurm/commit/78c8d4a32a70d78c6d0c77857b5da546291125e3

Closing ticket as I think this should be sufficent for anyone who wants to make sure `--yaml` works. Please respond if there are any more related questions or issues.

--Nate