The desktop terminal could not run srun: MpiDefault is pmix, and dlopen of /usr/lib64/slurm/mpi_pmix.so failed on libhwloc.so.15. The plugin carries an RPATH of /opt/ohpc/pub/libs/hwloc/lib:/opt/ohpc/admin/pmix/lib, so the answer is to bind /opt/ohpc. Binding /usr/lib64/libhwloc.so.15.4.1 at the soname also made srun work, but only by accident: that file exists on the compute node, which installs the distro hwloc, and not on the head node, so the bind made the session fail to start outright wherever the distro copy was absent - and the version in the path changes under the next image rebuild. Verified with the deployed config: a session submitted through the portal renders the /opt/ohpc bind, comes up, and "srun -N1 ls /" returns inside that session's own container namespace. Co-Authored-By: Claude Opus 5 <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.