Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385871 - sys-cluster/slurm-2.2.7-r1 in portage has many problems. Fixed and bumped.
Summary: sys-cluster/slurm-2.2.7-r1 in portage has many problems. Fixed and bumped.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 15:54 UTC by Nicolas Bigaouette
Modified: 2012-04-18 13:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
slurm-2.3.0.2.ebuild (slurm-2.3.0.2.ebuild,4.68 KB, text/plain)
2011-10-06 15:55 UTC, Nicolas Bigaouette
Details
slurm-2.2.7-r2.ebuild (slurm-2.2.7-r2.ebuild,4.61 KB, text/plain)
2011-10-06 15:58 UTC, Nicolas Bigaouette
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bigaouette 2011-10-06 15:54:50 UTC
sys-cluster/slurm-2.2.7-r1 in portage has many small issues. I'm uploading a fixed ebuild for 2.2.7 and an updated version to 2.3.0-2.
It's also available on github: https://github.com/nbigaouette/ebuilds/tree/master/sys-cluster/slurm
or my overlay (nbigaouette)
Changes:
-files/slurm.confd: Changed "PBS_USE_MUNGE=..." to "SLURM_USE_MUNGE=..."
-Added support for "ypbind" use flag. Without it, our diskless cluster cannot start slurm (as slurm would start before ypbind).
-3 init scripts: checkconfig was not called in start(), allowing to slurm to fail silently.
-We need limits to be propagated. Thus before starting slurmctld, "ulimit -l unlimited" is called. See https://computing.llnl.gov/linux/slurm/faq.html#rlimit and http://www.open-mpi.org/faq/?category=openfabrics#ib-locked-pages
-Changed SRC_URI to new location, as package moved from sourceforge to http://www.schedmd.com/#repos
-RESTRICT="primaryuri" for the same reason.
-inherit versionator to parse the package version: slurm-2.3.0-2.tar.bz2
-Moved folder creation+permissions to own function to prevent duplication/copy-paste problems: create_folders_and_fix_permissions()
-Added notes about these path as they should be used in /etc/slurm/slurm.conf. If not, slurm won't work properly.

The same ebuild should work with 2.2.7-r2 and 2.3.0-2. Except:
-File /etc/cgroup.release_agent moved to /etc/cgroup.release_common.example
-File /src/plugins/proctrack/cgroup/xcgroup.h moved to /src/common/xcgroup.h

Reproducible: Always
Comment 1 Nicolas Bigaouette 2011-10-06 15:55:57 UTC
Created attachment 288963 [details]
slurm-2.3.0.2.ebuild
Comment 2 Nicolas Bigaouette 2011-10-06 15:58:09 UTC
Created attachment 288965 [details]
slurm-2.2.7-r2.ebuild
Comment 3 Alexey Shvetsov archtester gentoo-dev 2012-04-18 13:27:15 UTC
Thank you for you work!

I incorporated your changes into slurm-2.3.4