Munge make check fails on fresh Ubuntu

Asked by Anthony Nash

Dear all,

I'm a novice at HPC job scheduler installation (but a frequent user) and I'm running into a fair number of roadblocks trying to get SLURM up and running. One of those roadblocks is getting Munge installed and/or recognised during the slurm ./configure.

Some information concerning the small login node for my cluster:

NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.2 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
5.4.0-1041-raspi

Firstly, I've tried sudo apt-get install munge. This works fine but SLURM can't find the Munge installation directory. In fact, I don't know where it is myself, so any help with that would be great.

Secondly, I've tried installing Munge following the instruction on github. To be fair, I'm really unsure about what I'm doing!
I made a directory:

/home/mpiuser/munge

Then I made subdirectories and adjusted the permissions according to the instructions given:
drwx------ 2 mpiuser mpiuser 4096 Aug 4 19:05 etc
drwxr-xr-x 2 mpiuser mpiuser 4096 Aug 4 19:05 run
drwx------ 2 mpiuser mpiuser 4096 Aug 4 19:05 var

Then I tried the ./configure:

./configure --prefix=/usr --sysconfdir=/home/mpiuser/munge/etc --localstatedir=/home/mpiuser/munge/var --runstatedir=/home/mpiuser/munge/run --with-crypto-lib=openssl

Followed then by make and finally makecheck. That's then when I ran into lots of errors and fails:
============================================================================
Testsuite summary for MUNGE 0.5.14
============================================================================
# TOTAL: 359
# PASS: 171
# SKIP: 25
# XFAIL: 5
# FAIL: 149
# XPASS: 0
# ERROR: 9
============================================================================
See t/test-suite.log
============================================================================

This is just the very start of the t/test-suite.log file:

ERROR: 0010-basic
=================

ok 1 - setup environment
PASS: 0010-basic.t 1 - setup environment
ok 2 - create key
PASS: 0010-basic.t 2 - create key
ok 3 - check keyfile creation
PASS: 0010-basic.t 3 - check keyfile creation
not ok 4 - start munged
FAIL: 0010-basic.t 4 - start munged
#
# munged_start_daemon
#
not ok 5 - check pidfile creation
FAIL: 0010-basic.t 5 - check pidfile creation
#
# test -s "${MUNGE_PIDFILE}"
#
not ok 6 - check process is running
FAIL: 0010-basic.t 6 - check process is running
#
# PID=$(cat "${MUNGE_PIDFILE}") &&
# ps -p "${PID}" -ww | grep munged
#
not ok 7 - check socket creation
FAIL: 0010-basic.t 7 - check socket creation
#
# test -S "${MUNGE_SOCKET}"
#
.............

I suspect many of these errors are going to be caused by the same fault. Suggestions are warmly welcomed.

Thanks
Anthony

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu munge Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#1

"Firstly, I've tried sudo apt-get install munge. This works fine but SLURM can't find the Munge installation directory. In fact, I don't know where it is myself, so any help with that would be great."

If you want to compile a package that needs another software, you usually have to install the development package of the latter. In your case for using the Ubuntu munge package for slurm you probably would need:

sudo apt install munge-dev

If you need to know the details about the files installed by a package you can either use the command "dpkg -L <packagename>" , or use the file listing for the packages on https://packages.ubuntu.com

Revision history for this message
Anthony Nash (acnash) said :
#2

Hi Manfred,

Thank you for your input, it is appreciated.

I tried "sudo apt install munge-dev" and sadly the package does not exist.

I'm not 100% sure how much of munge I need. I would like to get SLURM working for a small home-built cluster (for my computational chemistry work, and the work of some of my students).

Before delving too deep into Google, did you mean something besides "munge-dev"?

Thanks

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

Sorry, my fault, I mistyped the name.

sudo apt install libmunge-dev

For some details of the packages related to munge you can look yourself at https://launchpad.net/ubuntu/+source/munge

Revision history for this message
Anthony Nash (acnash) said :
#4

Thanks Manfred Hampl, that solved my question.