Files
ilker 29bd39c135 Warewulf HPC test cluster: provisioning, identity, docs and overlay UI
A complete, verified HPC lab on Proxmox (hv01) with its own isolated subnet,
central identity and a web console for overlay management.

Infrastructure
- vmbr6: L2-only cluster fabric, deliberately without an address on the
  hypervisor so Warewulf owns DHCP/TFTP/PXE for the whole subnet.
- head01 (VM 300): Warewulf 4.7.0, dnsmasq-free DHCP/TFTP/iPXE chain,
  Slurm controller, MUNGE, NAT gateway, /opt exported read-only.
- wwnode1-4 (VM 301-304): diskless, PXE-booted, rootfs unpacked into RAM.
- idm1 (VM 305): FreeIPA (LDAP/Kerberos/Dogtag CA/DNS) plus the NFS home
  server. Dual-homed on purpose: idm1.hpc.local resolves to the cluster
  fabric so Kerberos and NFS never traverse head01's masquerade.

Stack
Rocky Linux 9.8, OpenHPC 3, Slurm 25.11.4, OpenMPI 5.0.7, FreeIPA 4.13.1.

Stateless domain join
Nodes are rebuilt in RAM every boot, so ipa-client-install cannot be used.
Enrolment happens once and is distributed through Warewulf overlays: shared
config as templates rendered per node via {{.Id}}, and a separate keytab per
node so wwnode1 cannot impersonate wwnode2.

Overlay web UI (webui/)
A Go service on the head node serving a browser interface over the Warewulf
REST API. It exists as a server rather than a static page because the API is
root-equivalent and bound to loopback; the service holds the credentials and
proxies same-origin, so the browser never sees one. Published behind Caddy
with bcrypt logins, server-side sessions and per-user/per-IP lockout.

Documentation
README plus docs/01-10 covering architecture, installation, Warewulf,
identity, storage, Slurm/MPI, operations, troubleshooting and reference,
with a 22-page PDF edition. Section 08 records twelve concrete failures hit
during the build, including a wwctl flag that fails silently.

No credentials are stored here. Every secret lives on the servers; the
documentation refers only to its path.
2026-08-29 09:07:51 +02:00

33 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
# Full build from scratch. Run from the laptop (ssh aliases: proxmox, head01).
set -euo pipefail
cd "$(dirname "$0")"
echo "### 1/7 Proxmox infrastructure (bridge + VMs)"
ssh proxmox 'bash -s' < 00-proxmox-provision.sh
ssh proxmox 'qm start 300'
echo "### waiting for head01 ssh"
for i in $(seq 1 30); do ssh -o ConnectTimeout=8 -o BatchMode=yes head01 true 2>/dev/null && break; sleep 10; done
for s in 10-head-base.sh 20-warewulf-install.sh 30-warewulf-configure.sh \
40-node-image.sh 50-nodes-register.sh 60-slurm-openhpc.sh; do
echo "### running: ${s}"
scp -q ${s} head01:/tmp/
ssh head01 "sudo bash /tmp/${s}"
done
echo "### 7/7 start the nodes"
ssh proxmox 'for v in 301 302 303 304; do qm start $v 2>/dev/null || qm reset $v; done'
echo "### waiting for nodes"
ssh head01 'for i in $(seq 1 60); do
UP=0; for n in 11 12 13 14; do ping -c1 -W1 10.10.10.$n >/dev/null 2>&1 && UP=$((UP+1)); done
[ $UP -eq 4 ] && { echo "4/4 ready"; break; }; sleep 20
done'
echo "### MPI verification"
scp -q ../mpi/hello_mpi.c ../mpi/mpi-ring.sbatch head01:/tmp/
ssh head01 'sudo bash /tmp/70-mpi-test.sh' || \
{ scp -q 70-mpi-test.sh head01:/tmp/; ssh head01 'sudo bash /tmp/70-mpi-test.sh'; }