Re: [slurm-users] Setting up slurmrestd

141 views
Skip to first unread message

Karl Lovink

unread,
Jan 8, 2021, 2:05:20 PMJan 8
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 PMJan 8
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 PMJan 8
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:


Reply all
Reply to author
Forward
0 new messages