rackslab / Slurm-web

Open source web dashboard for Slurm HPC clusters
https://slurm-web.com
GNU General Public License v3.0
340 stars 97 forks source link

Unsupported node naming scheme without digit causing blank node list #328

Closed rezib closed 3 months ago

rezib commented 3 months ago

Slurm-web lacks support of node naming scheme without digit, such as this one:

$ sinfo
PARTITION AVAIL  TIMELIMIT  NODES  STATE NODELIST
allnodes*    up   infinite      7  down* arod,c5,gondor,melkor,mordor,shelob,urukhai
allnodes*    up   infinite     22   idle aragorn,aule,c[1-4],elrond,elros,eru,galadriel,gandalf,irmo,manwe,middle,namo,olorin,orome,saruman,sauron,tulkas,ulmo,vana
jdk21        up   infinite      2  down* melkor,mordor
jdk21        up   infinite     17   idle aragorn,aule,c[2-4],elrond,elros,eru,irmo,manwe,namo,orome,saruman,sauron,tulkas,ulmo,vana
students     up   infinite      1   idle middle

This notably causes blank node list in resources page, as reported in discussion in https://github.com/rackslab/Slurm-web/discussions/327:

Originally posted by **rezib** July 31, 2024 This is the first time of loading, it plots the drawing with the racks (although they are not listed in the table below): ![image](https://github.com/user-attachments/assets/51328d66-532a-4285-85dc-786a0b086b3d) Then after some seconds the JS function is pulling again the nodes and refreshes the page with a similar error and goes blank: ![image](https://github.com/user-attachments/assets/6a01acbb-c5bc-4984-b083-2787baf64922) _Originally posted by @parapar in https://github.com/rackslab/Slurm-web/discussions/324#discussioncomment-10198742_