[slurm-users] Setting up slurmrestd

Luke Yeager lyeager at nvidia.com
Fri Jan 8 19:23:55 UTC 2021


There's this: https://slurm.schedmd.com/rest.html

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-users-bounces at lists.schedmd.com> On Behalf Of Karl Lovink
Sent: Friday, January 8, 2021 11:04 AM
To: slurm-users at schedmd.com
Subject: Re: [slurm-users] Setting up slurmrestd

External email: Use caution opening links or attachments


-----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-----


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20210108/20dd8c3a/attachment-0002.htm>


More information about the slurm-users mailing list