Ticket 1188 - Create systemd service file(s) for Slurm
Summary: Create systemd service file(s) for Slurm
Status: RESOLVED FIXED
Alias: None
Product: Slurm
Classification: Unclassified
Component: Other (show other tickets)
Version: 15.08.x
Hardware: Linux Linux
: 5 - Enhancement
Assignee: David Bigagli
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2014-10-20 03:50 MDT by David Gloe
Modified: 2014-11-04 06:01 MST (History)
2 users (show)

See Also:
Site: CRAY
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed: 14.11.0
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description David Gloe 2014-10-20 03:50:23 MDT
More Linux distros are moving to systemd rather than init scripts to control daemons. Cray is looking into SLES 12 for an upcoming release, which uses systemd. Having a service file will have better integration with systemd than the init script.
Comment 1 Moe Jette 2014-10-20 04:11:40 MDT
I believe that Gennaro Oliva already has added systemd support and we should pick that up (perhaps for our v14.11 release). Here is more information from Genaro:
====================================
'm happy to announce that together with two other guys,  Rémi
Palancher and Mehdi Dogguy, we succeeded to prepare the new slurm
package for Debian with version 14.03.8. I hope to get the .9 in, before
the upcoming release freeze. The new package is already
in the testing and unstable branch of Debian but will also be
contained in the next stable release "Jessie". The llnl acronym have
been removed from all the binary packages. It's still in use in some
packages directories but will be removed in the next releases.

The old slurm-llnl package content have been split in
three different packages: slurctld with the central
management daemon, slurmd with the compute node daemon and
slurm-client with client side commands. The old slurm-llnl
package content can still be obtained by installing
the new slurm-wlm metapackage. A list of the name changes
follows:

* slurm-llnl -> slurm-wlm (slurm-client, slurmd, slurmctld)
* slurm-llnl-slurdbd -> slurmdbd
* slurm-llnl-basic-plugins -> slurm-wlm-basic-plugins
* slurm-llnl-basic-plugins-dev -> slurm-wlm-basic-plugins-dev
* slurm-llnl-sview -> sview
* slurm-llnl-doc -> slurm-wlm-doc

The new slurm-wlm package supports systemd.

For lack of time the source package is still named slurm-llnl, but this
is something totally transparent to users: they can use the name
slurm-wlm to install or get the slurm source with apt. To ensure a
smooth upgrade, there is also a binary slurm-llnl transitional dummy
package that can be safely removed (this is needed to handle
transition between the old name and the new name).

I hope you enjoy this new release,
Ciao
-- 
Gennaro Oliva
Comment 3 David Gloe 2014-10-20 06:22:21 MDT
The service files might help in bug 1182, though that's for 14.03.
Comment 4 David Gloe 2014-10-21 06:57:55 MDT
I think there's a typo in the spec file, in a couple places systemdbd.service is used instead of slurmdbd.service.
Comment 5 David Bigagli 2014-10-21 07:43:51 MDT
I fixed it thanks David.
Comment 6 David Gloe 2014-10-21 08:16:15 MDT
Also, I think the service files need to be installed to /usr/lib/systemd/system, not /lib/systemd/system/. Based on http://www.freedesktop.org/software/systemd/man/systemd.unit.html
Comment 7 Moe Jette 2014-10-21 08:21:31 MDT
(In reply to David Gloe from comment #6)
> Also, I think the service files need to be installed to
> /usr/lib/systemd/system, not /lib/systemd/system/. Based on
> http://www.freedesktop.org/software/systemd/man/systemd.unit.html

That seems to be dependent upon the distribution.
They are in /lib/systemd/system/ on Ubuntu.
Comment 8 David Bigagli 2014-10-23 04:31:30 MDT
Ubuntu does not use the systemctl command and systemd. I am working on fixing the units file.

David
Comment 9 David Bigagli 2014-11-04 06:01:53 MST
We use CentOS/Redhat as reference for the installation of the service
units, so the spec file has changed and the service units are installed
in  /usr/lib/systemd/system.

David