Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway - Reservation displays invalid date #335

Closed
attssystem opened this issue Aug 19, 2024 · 6 comments
Closed

Gateway - Reservation displays invalid date #335

attssystem opened this issue Aug 19, 2024 · 6 comments
Labels

Comments

@attssystem
Copy link

Hi :) (sorry for the spam...)

I'm running the gateway (3.1.0-1.deb12 in production mode using Apache) in a Debian 12 container and I've got an issue with the Reservation view. On my cluster I've got one reservation that appears mostly correctly but I get "Invalid date" for start and end times (see below screenshot).

Capture d’écran 2024-08-19 à 13 52 51

It doesn't generate error in the web console, agent doesn't seem to generate error either (nothing appears in frontend at least).

I've done a scontrol show res on my cluster and got those (time-related) dates :

StartTime=2024-08-20T17:00:00 EndTime=2024-08-20T23:59:00 Duration=06:59:00

Is something wrong on my side ?

Thanks for your help ! :)

@attssystem attssystem changed the title SLURM Web Frontend - Reservation displays invalid date Gateway - Reservation displays invalid date Aug 19, 2024
@rezib
Copy link
Contributor

rezib commented Aug 19, 2024

Hello @attssystem, thanks for reporting!

Do you get this behavior with multiple browsers? What Slurm version are you using?

Can I have the result of this command (possibly anonymized)?

# curl --unix-socket /run/slurmrestd/slurmrestd.socket http://slurm/slurm/v0.0.39/reservations

@attssystem
Copy link
Author

attssystem commented Aug 19, 2024

I get this issue with Safari and Chrome on MacOS14. I'm running slurm 23.11.7 (sinfo -V on a login node) and API v0.0.40 (specified in agent.ini).

So with curl --unix-socket PATH_TO_SOCKET/slurmrestd.socket http://slurm/slurm/v0.0.40/reservations I get :

{
   "reservations": [
     {
       "accounts": "...",
       ...
       "core_specializations": [
       ],
       "end_time": {
         "set": true,
         "infinite": false,
         "number": 1724191140
       },
       "features": "",
       "flags": [
         "WEEKLY",
         "SPEC_NODES"
       ],
       "groups": "",
       "licenses": "",
       "max_start_delay": 0,
       "name": "...",
       "node_count": ...,
       "node_list": "L[XXX-YYY]",
       "partition": "standard",
       "purge_completed": {
         "time": {
           "set": true,
           "infinite": false,
           "number": 300
         }
       },
       "start_time": {
         "set": true,
         "infinite": false,
         "number": 1724166000
       },
       "watts": {
         "set": false,
         "infinite": false,
         "number": 0
       },
       "tres": "cpu=ZZZ",
       "users": ""
     }
   ],
   "last_update": {
     "set": true,
     "infinite": false,
     "number": 1724074580
   },
   "meta": {
     "plugin": {
       "type": "openapi\/slurmctld",
       "name": "Slurm OpenAPI slurmctld",
       "data_parser": "data_parser\/v0.0.40",
       "accounting_storage": "accounting_storage\/slurmdbd"
     },
     "client": {
       "source": ".../slurmrestd.socket->socket...",
       "user": "...",
       "group": "..."
     },
     "command": [
     ],
     "slurm": {
       "version": {
         "major": "23",
         "micro": "5",
         "minor": "11"
       },
       "release": "23.11.5",
       "cluster": "..."
     }
   },
   "errors": [
   ],
   "warnings": [
   ]
 }

(I tried to obfuscate not too much)

It could come from my API version ? (sorry I didn't check before asking)

@rezib
Copy link
Contributor

rezib commented Aug 19, 2024

Heh yes, specifying an alternative version in agent.ini is clearly not recommended, this should be considered more as a developper setting. Restoring the default value should fix your issue.

@rezib
Copy link
Contributor

rezib commented Aug 20, 2024

Can you confirm that removing [slurmrestd] > version from agent.ini (or setting value 0.0.39) fixes your issue?

@attssystem
Copy link
Author

attssystem commented Aug 20, 2024

Hi, just tested. It doesn't work because our slurmrestd is set on 0.0.40. It doesn't answer to 0.0.39 requests and removing the line version just broke the agent making the cluster unavailable on the gateway.

I'll have to discuss with my colleagues if we can enable 0.0.39 alongside 0.0.40.

@attssystem
Copy link
Author

Just tried exposing 0.0.39 and it works ! Thanks for your help

@rezib rezib added the invalid label Aug 20, 2024
@rezib rezib closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants