Publishing worked; everything after it did not. Four things were wrong and each was silent in its own way. Versions were compared as text, so asking for "gromacs" with 2024.9 and 2024.10 published returned 2024.9. The whole meaning of an unversioned reference is "the newest one", and it was a wrong answer rather than a missing one - invisible until somebody noticed they had spent a week on last year's build. A recipe could hold one version while the catalogue could hold many, so an update either destroyed what it replaced or grew a parallel directory sharing nothing with the first. Recipes now carry a list, and the single-version form is read into the same shape, so nothing downstream knows which was written. An image was named by a mutable tag. Whoever repushes gromacs:2024.4 changed what every rebuilt cluster received, silently, and the record meant to freeze the cluster froze only its opinion of it. Two hashes are now recorded because they are checkable in different places: the manifest digest answers "has this moved" from the control plane, and the SIF hash is the only one a head can check with no network and no credential - which matters, because the head is where a wrong image does harm. Pulling by digest is deliberately not done: whether this Apptainer accepts an @sha256: reference is not established, and a provision failing at its last task over untested syntax would be worse than the problem. Module and binaries had been in the catalogue since it was written and were read by nothing - Module was referenced nowhere in the program. So a tenant was handed /opt/apps/gromacs.sif and left to work out Apptainer. They now become a wrapper per binary and an Lmod modulefile, and the answer is `module load gromacs`. Whether to pass --nv is decided on the node at run time: passing it without a driver fails outright, and omitting it where there is one leaves the job on the CPU saying nothing at all, which is the dangerous one. Four states replace `published:`. A withdrawn entry stays in the catalogue file, because dropping it would make it indistinguishable from one that never existed - and that difference is what an operator needs when a cluster is found still holding it. A pinned reference to one is refused with the recorded reason instead of "no application", which would send the user hunting for a typo in a correct name. The portal re-reads the catalogue when it changes, so publishing an application no longer needs a restart - the step that is invisible when forgotten. C20 ships the catalogue, which nothing did. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Ansible — tenant configuration
Phase 4: turns the VMs Terraform created into a working HPC cluster. These
roles are ports of scripts/, which were verified by hand first — the
comments explaining why came with them deliberately, because each one
records a failure that cost real time to find.
Where this runs
On the provisioning host, not on a laptop. Both trees are deployed to
/var/lib/hpcod/ on the same machine as the portal, which reaches every
Proxmox API and every tenant head node directly — no tunnels, no operator
workstation in the path. That is also what the design calls for: the
provisioner is a component of the control plane, not something a human runs
by hand.
ssh web-frontend
cd /var/lib/hpcod/terraform/envs/lab && sudo -u hpcod tofu apply
cd /var/lib/hpcod/ansible && sudo -u hpcod ansible-playbook -i inventory/tenant.yml site.yml
# once the compute nodes are powered on and have had time to PXE boot
sudo -u hpcod ansible-playbook -i inventory/tenant.yml site.yml --tags cluster
Ansible's scratch directory is set in ansible.cfg because the service
account has no home; without it Ansible dies at startup trying to create
~/.ansible/tmp.
Role order is not arbitrary
slurm runs before warewulf_nodes because the hpc overlay it creates
has to exist before the final overlay build. Reverse them and the nodes boot
without slurm.conf or the MUNGE key, and come up unable to join.
What the comments are protecting
| Role | Trap |
|---|---|
warewulf |
cloud-init's forced-command wrapper in root's authorized_keys gets copied to every node and locks root out of all of them |
warewulf_nodes |
--netdev must be the node's real interface name; "default" matches nothing and the node never leaves its DHCP lease |
warewulf_nodes |
profile set --nettagadd returns 0, prints nothing, and changes nothing — nodes then boot with an empty resolv.conf |
node_image |
slurmd's spool directory is runtime state, so it belongs in the image, not an overlay |
slurm |
overlay import -p creates parents 0500 root:root, which locks /etc and stops munged |
slurm |
OpenHPC ships no lmod-defaults for this compiler pairing, so the default modulefile is written by hand or every MPI binary fails on libucp.so.0 |
slurm |
RealMemory is set below the VM's actual memory because the rootfs lives in RAM |
Not covered yet
Identity. A10–A60 stand up FreeIPA and enrol the stateless nodes with
per-node keytabs; porting that is the next piece. Until then a tenant gets
local accounts only.