-
Notifications
You must be signed in to change notification settings - Fork 100
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
A working slurm-web v2.4.0 on Ubuntu 20.04 announcement #222
Comments
Fantastic work! I might try and get this working on Slurm 21.08 if I can manage it. |
Thank you very much for this sharing and the positive feedback! :) |
No. Thank YOU! 😃 |
hi |
I have three clusters and following is clusters.config.json of slurm.watch.example.com, where I can observe all three of them: [
{
"name": "Cluster A (XXX internet data center)",
"api": {
"url": "http://slurm.space1.example.com:8080",
"path": "/slurm-restapi"
}
},
{
"name": "Cluster B (Headquarter server room)",
"api": {
"url": "http://slurm.watch.example.com",
"path": "/slurm-restapi"
}
},
{
"name": "Cluster C (XXX internet data center)",
"api": {
"url": "https://slurm.example.com",
"path": "/slurm-restapi"
}
}
] And the corresponding restapi.conf:
|
hi so have anyway run slurm-web on centos 7.7 with docker? when i build over it seem like only white page |
I don't use CentOS. So I cannot answer to your question. But the important part is to build Docker image with pyslurm working with Slurm installed on your CentOS. |
Hello @daverona , Do you know what is it? For info my Slurm version is 19.05.5 and I'm running the container on the slurm controller (headnode). |
Related issue #183 |
Hi @andrewssobral, Thanks for your kind words. To answer your question, let me ask you a question: If it is local, I suggest to check your local slurm-web's If it is remote (in this scenarios, you use your local slurm-web container (web part) for the remote slurm-web container (REST part)), check your remote slurm-web's If everything is good, the second question to ask is: [
{
"name": "Brain (Hostway internet data center)",
"api": {
"url": "http://slurm.space1.example.com:8080",
"path": "/slurm-restapi"
}
},
{
"name": "Dev (Headquarter server room)",
"api": {
"url": "http://slurm.watch.example.com",
"path": "/slurm-restapi"
}
},
{
"name": "Seer (Hostway internet data center)",
"api": {
"url": "https://slurm.example.com",
"path": "/slurm-restapi"
}
}
] Note that even thou the second one (Dev) is local to me, I didn't use http://localhost for the service URL. Hope this helps. Good luck. |
I want to know where the URL and path in cluster.config.json are obtained from. I have deployed a local Slurm cluster, but I don't know what to fill in the address in cluster.config.json. Are there any default listening addresses? Please help answer this question. Thank you. |
Have you solved this problem? I encountered the same issue where I'm not sure how to fill in the url and path in the cluster.config.json file. I couldn't find any related configuration in my Slurm cluster. Do you have any idea? Thank you. |
Hi, Where do i need to copy below configuration from the repository ./racks.xml |
The answer is
Then Hope this answers to your question. |
Maybe it wasn't clear in my original post. If
If your container is running on a host which is not running
Each server marked with (*) is not (obviously) a cluster itself. So empty array is enough for Now to answer to your question,
Here is an example. If you use
If observer.example.com is not running
|
I am running the container and slurmctld on same host. The host created on virtual machine. I have updated the clusters.config.json with value []. But i am getting following error. I found that the http://localhost:8080/slurm-restapi throwing an"Intrernal Server Error" - status : 500. I am unable to find out the root cause of issue. |
The error is really a warning. The real problem is, your slurm-web UI part cannot reach the slurm-web REST part. Open |
Note that this issue concerns Slurm-web v2 which is not maintained anymore. The new version v3.0.0 has been released and its is much easier to install than previous versions thanks to native system packages (RPM, deb) for most popular distributions. The quick start guide for v3.0.0 is available online: https://docs.rackslab.io/slurm-web/install/quickstart.html If you prefer containers over traditional system packages, it is also planned to work on this in #266. Unless you see a good reason to keep this issue open, it will be closed in a few weeks. BTW, thank you @daverona for your invaluable work on Slurm-web v2 despite its bad shape. |
For the reasons explained in the previous comment, I finally close this issue. |
This is not an issue but an announcement for working slurm-web v2.4.0 on Ubuntu 20.04
If this post causes any problem, I will gladly delete it.
But I thought I might share what I experienced.
The Docker image can be pulled:
The package versions used in the image:
Then you need a configuration directory first from https://github.com/edf-hpc/slurm-web/tree/v2.4.0/conf
And please edit the files in the directory especially:
./racks.xml
./restapi.conf
Assuming that
slurmctld
is 19.05.05 (default, off-the-shelf package) on Ubuntu 20.04,slurmctld
is running on the host on which you are about to run a container, andconf
is under the current directory,type the following to run a container:
docker container run \ -d \ -v /etc/passwd:/etc/passwd:ro \ -v /etc/group:/etc/group:ro \ -v /etc/munge:/etc/munge \ -v /etc/slurm-llnl:/etc/slurm-llnl:ro \ -v $(pwd)/conf:/etc/slurm-web:ro \ -p 8080:80 \ registry.gitlab.com/daverona/docker/slurm-web:v2.4.0-p3
Then visit http://localhost:8080
Note. If you plan to run the container on a different machine from the one running
slurmctld
, copy four files:/etc/passwd
/etc/group
/etc/munge/munge.key
/etc/slurm-llnl/slurm.conf
to the machine you will run the container and mount them. It will work. (It's been tested.)
By editing
./dashboard/clusters.config.json
and./restapi.conf
properly, you can observe multiple clusters on a single website. (It's been tested.)The Dockerfile source is here: https://gitlab.com/daverona/docker/slurm-web/-/blob/v2.4.0-p3/Dockerfile
I hope this post will help someone who wishes to run slurm-web on Ubuntu 20.04.
And want to say thank you so much for this fabulous work!!
The text was updated successfully, but these errors were encountered: