Update "Install Slurm" documentation to leverage cloud-init#82
Update "Install Slurm" documentation to leverage cloud-init#82lunamorrow wants to merge 28 commits intoOpenCHAMI:mainfrom
Conversation
…n will need some further updates to align better with the Tutorial (e.g. changing IP addresses, adjusting comments to support bare-metal and cloud setups, etc.) and to ensure the documented approach is sufficiently broad for general purpose. Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
… for creating some files from cat to copy-paste to prevent issues with bash command/variable processing Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
… - this should make this guide easy to follow on with after the tutorial Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…Next step will be expanding comments/explanations to provide more context to users, as well as providing more code blocks to show expected output of commands that produce output. Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…id. Changes include making it more clear when pwgen password is used, correcting the file creation step for slurm.conf to prevent errors, removing instructions for aliasing the build commend (and instead redirecting to the appropriate tutorial section), updating instructions inline with a recent PR to replace MinIO with Versity S3 and some minor typo fixes Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…ck from David. Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…Some reviews are still pending as I figure out the source of the problem and a solution, and I will address these in a later commit. Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
… to VM head nodes. Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…certain commands shoudl behave and/or the output they should produce. Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…ecurity vulnerabilities with versions 0.5-0.5.17 Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…ompute node. Additionally made some tweaks to the documentation to make the workflow more robust after repeating it on a fresh node. Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…in a few places Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…erence to the 'Install Slurm' guide Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…t and the image config to reduce the number of commands needing to be run on the compute node. We are waiting on feedback from David and Alex before potentially implementing a more persistent Slurm configuration on the compute node/s. Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…evon Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
… in the working directory '/opt/workdir' (as desired) and not the user's home directory Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…r' in the slurm-local.repo file Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…f slurm RPMs in '/opt/workdir' Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…ommand Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
… explanation that the SlurmctldHost must be 'head' instead of 'demo' when the head node is a VM Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…rrow/cloud-init-compute-node-slurm-config Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…t so that compute node Slurm configuration is persistent across nodes and on reboot Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
|
I have made some changes to the documentation to use cloud-init instead of manually configuring the compute node. This process also sets up NFS to mount shared files (e.g. Slurm configuration files) used by both the compute node and head node. The current commit only adds a basic compute node configuration (similar to what was already there, only with cloud-init now), but I am able to push up a more complex configuration which sets up LDAP and mounts the compute node with more memory for a more "realistic" Slurm setup. That way anyone who follows the guide will finish with a more production-ready Slurm configuration. Let me know what you think @synackd @davidallendj @alexlovelltroy The merge I performed on this branch pulled in quite a lot of old commits which has clogged up this PR a bit, sorry about that! |
…hown' command Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
|
As an aside, has someone updated the documentation formatting? All of the in-line code and code block headings are black in the Tutorial, which makes it impossible to read some of the documentation. It still appears the same as usual when I render it locally, but it has changed on https://openchami.org/docs/tutorial/ |
…nly fixing the name of the ACCESS and SECRET tokens for S3 and making a comment into a note to improve visibility Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
|
I wonder if the rendering issues were caused by the updates in #88. @alexlovelltroy? |
|
It might more likely be #81. |
|
Just a small nit-pick: line 1303 says |
…tput of ci-defaults Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…ode, to ensure that slurmdbd is up before slurmctld restarts Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…e munge.key between head node and compute node Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
…compute node instead of short hostname Signed-off-by: Luna Morrow <luna.morrow2@gmail.com>
synackd
left a comment
There was a problem hiding this comment.
Thank you, @lunamorrow ! This is great.
I've asked for a few small changes based on my runthrough.
Also, this patch edits the cloud-init group for the compute SMD group. Idiomatic OpenCHAMI practice would warrant creating a separate slurm SMD group and setting the cloud-init group config for that group. Since this PR works, I'm inclined to keep the change and edit that later, but I will leave it up to you.
Also, long term, it might be good to refactor this to support newer Slurm/Munge versions so it's not a big task to update these docs, but that is a task for a different time.
There was a problem hiding this comment.
There was a problem hiding this comment.
I agree and I thought something went wrong the first time I ran it.
| - bind-utils | ||
| - openldap-clients | ||
| - sssd | ||
| - sssd-ldap | ||
| - oddjob-mkhomedir |
There was a problem hiding this comment.
This is more of a nitpick, but I think it applies when having a large list of packages. Can we make this list alphabetical? That way it's straightforward to know where to add new packages to the list and its easy to visually search if a certain package is present.
| The output should be: | ||
|
|
||
| ``` | ||
| 1615M s3://boot-images/compute/slurm/rocky9.7-compute-slurm-rocky9 |
There was a problem hiding this comment.
These are the versions displayed when I ran through this:
1660M s3://boot-images/compute/slurm/rocky9.7-compute-slurm-rocky9
85M s3://boot-images/efi-images/compute/slurm/initramfs-5.14.0-611.36.1.el9_7.x86_64.img
14M s3://boot-images/efi-images/compute/slurm/vmlinuz-5.14.0-611.36.1.el9_7.x86_64
There was a problem hiding this comment.
Also will need to update in the BSS output below.
| Now, set this configuration for the compute group: | ||
|
|
||
| ```bash | ||
| ochami cloud-init group set -f yaml -d @/etc/openchami/data/cloud-init/ci-group-compute.yaml |
There was a problem hiding this comment.
This works, but ideally we have a separate slurm group in SMD and set the cloud-init config for this group. That way we keep the compute group's config separate for general-purpose things. I think that, since this works, I'm inclined to accept this change and save this improvement for a different PR.


Pull Request Template
Thank you for your contribution! Please ensure the following before submitting:
Checklist
make test(or equivalent) locally and all tests passgit commit -s) with my real name and email<filename>.licensesidecarLICENSES/directoryDescription
Updating/extending the "Install Slurm" documentation guide to leverage OpenCHAMI's cloud-init to make compute node configuration persistent across nodes and on reboot. See discussion/comments on PR #72.
Type of Change
For more info, see Contributing Guidelines.