Re: [slurm-users] sharing licences with non slurm workers

2023-03-24 Thread Matteo Guglielmi
Just replying to my own mail here: RTFM So, It was enough to add the following: SchedulerParameters=allow_zero_lic in slurm.conf From: slurm-users on behalf of Matteo Guglielmi Sent: Friday, March 24, 2023 3:03:35 PM To: slurm-us...@schedmd.com Subject

Re: [slurm-users] External Authentication Integration with JWKS and RS256 Tokens

2023-03-24 Thread Ümit Seren
Looks like you are missing the username field in the JWT token: https://github.com/SchedMD/slurm/blob/slurm-22-05-8-1/src/plugins/auth/jwt/auth_jwt.c#L419 You have to make sure that your JWT token contains the SLURM username as an attribute (https://slurm.schedmd.com/jwt.html#compatibility). On

Re: [slurm-users] External Authentication Integration with JWKS and RS256 Tokens

2023-03-24 Thread Laurence Field
Hi, After verifying the JWT and JWKS with some Python code, it magically seems to work. At least the error has changed to /auth_p_verify: jwt_get_grant failure. /This suggests I need to update something in the authorization policy. Will do that now but if anyone has done this before and can g

[slurm-users] Oversubscribing even though it's set to No on both partitions

2023-03-24 Thread Groner, Rob
I'm trying to puzzle out using QOS-based preemption instead of partition-based so we can have the juicy prize of PreemptExemptTime. But in the process, I've encountered something that puzzles ME. I have 2 partitions that, for the purposes of testing, are identical except for the QOS they have

Re: [slurm-users] sharing licences with non slurm workers

2023-03-24 Thread Davide DelVento
Ciao Matteo, If you look through the archives, you will see I struggled with this problem too. A few people suggested some alternatives, but in the end I did not find anything really satisfying which did not require a ton of work for me. Another piece of the story is users requesting a license bu

[slurm-users] sharing licences with non slurm workers

2023-03-24 Thread Matteo Guglielmi
Dear all, we have a license server which is allocating licenses to a bunk of workstation not managed with slurm (completely independent boxes) and the nodes of a cluster, all managed with slurm. I wrote a simple script that keeps querying the number of licenses used by the outside "world" a

Re: [slurm-users] External Authentication Integration with JWKS and RS256 Tokens

2023-03-24 Thread Laurence Field
Hi Ümit, Thanks for your reply. We are using Keycloak and the JWKS does contain this parameter. I will continue to debug but any suggestions would be greatly appreciated. Cheers, Laurence On 23.03.23 11:42, Ümit Seren wrote: If you use AzureAD as your identity provider beware that their JWK