Re: [slurm-users] Setting up slurmrestd

661 views
Skip to first unread message

Karl Lovink

unread,
Jan 8, 2021, 2:05:20 PM1/8/21
to slurm...@schedmd.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello,

I'm trying to configure slurmrestd but I haven't been very successful
so far. The plan is to use splunk to approach the endpoints. To test
the communication with slurmrestd I am now using curl. However, I
always get "Authentication failure" back. I think there are two
options to authenticate: JWT and an API key. I would like to use the
API key. slurmrestd, curl and soon Splunk will run on the same
machine. So communication via localhost is sufficient.

Is there somewhere and HOWTO to configure this? And can somebody help
me to setup this.

Sincerely,
Karl


-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEdAEe0RRL+gREs9oxGJor1wjGePMFAl/4rKIACgkQGJor1wjG
ePNpWwgAg4/m39mUv3ac4ZS4NxPErHccymUEELLagPIidUdbPa+NV9VagCoCbjvN
bM38k4X4Biud0AEGQ8yD5YDDJYZplYzViTJUF1wQr1aObU6NRgAj426rEFRZeP7j
pNL42QXh5/0szNYrrtH9c1UY+ALvwFR0CEpphvdoySa5tTm73zsSOgzD6CZN+AIY
g2bou6dLPBTB5v9y5WgjiC/9gdZxmtSv80Z72r6uWzKwVdI5pOattkjt9AFNy+Wa
mTYUN9Zix9u6ILeQ08poOLR2dMyfHbVtoL4lk4lV/yTyN7+9m2VlfTjM9ondyYuT
Bt7ToUEECLKL5/mMTuEz0RCC5xuUsA==
=4ZMz
-----END PGP SIGNATURE-----

Luke Yeager

unread,
Jan 8, 2021, 2:24:22 PM1/8/21
to Slurm User Community List, slurm...@schedmd.com
 
From my personal notes:
  • Install these packages before re-compiling Slurm (ubuntu 20.04): libhttp-parser-dev, libjwt-dev, and libyaml-dev
  • Setup JWT using these instructions: https://slurm.schedmd.com/jwt.html
  • Create /etc/slurm/slurmrest.conf with contents like this:
include {{ _sysconf_dir }}/slurm.conf
AuthType=auth/jwt
  • Run like this: slurmrestd -f /etc/slurm/slurmrestd.conf 0.0.0.0:6820
 
-----Original Message-----
From: slurm-users <slurm-use...@lists.schedmd.com> On Behalf Of Karl Lovink
Sent: Friday, January 8, 2021 11:04 AM
To: slurm...@schedmd.com
Subject: Re: [slurm-users] Setting up slurmrestd
 
External email: Use caution opening links or attachments

Karl Lovink

unread,
Jan 8, 2021, 5:15:06 PM1/8/21
to Slurm User Community List, slurm...@schedmd.com
Hi Luke,

Thanks it’s working now. Thanks. One last question, is it possible to create a non-expiring token. Yes, I know it is not secure....

Sincerely yours,
Karl 

On 8 Jan 2021, at 20:25, Luke Yeager <lye...@nvidia.com> wrote:



Stefan Staeglich

unread,
Jun 29, 2022, 9:38:02 AM6/29/22
to Slurm User Community List
Hi Karl,

do you've found a solution?

Best,
Stefan
--
Stefan Stäglich, Universität Freiburg, Institut für Informatik
Georges-Köhler-Allee, Geb.52, 79110 Freiburg, Germany

E-Mail : stae...@informatik.uni-freiburg.de
WWW : gki.informatik.uni-freiburg.de
Telefon: +49 761 203-8223

ka...@lovink.net

unread,
Jul 12, 2022, 6:47:48 AM7/12/22
to Slurm User Community List
Hi Stefan,

I did....
Reply all
Reply to author
Forward
0 new messages