Files
ilker 84bde89a43 hpcod: boot compute nodes in two stages, not one
The node phase was the largest remaining part of a provision, and the
reason turned out to have nothing to do with the image or the network.

Breaking a single node's boot down: 7.5s of VM POST and iPXE ROM, 3.1s
of DHCP, 3.1s fetching the kernel, 25.6s fetching the image, 11.2s of
the node's own boot, and 0.7s for Slurm to register it. The 25.6s is
370 MB at about 14 MB/s. Fetching that same image from an already
booted node over the same bridge, with an ordinary Linux TCP stack,
took 0.29s at 3.1 GB/s. So the server was not slow and neither was the
bridge: iPXE's HTTP client runs in the boot ROM, and that is where the
time went. Shrinking the image would only have scaled a bad rate.

Warewulf already ships the fix. Its iPXE template offers a two-stage
dracut boot where the firmware fetches only the ~36 MB initramfs and
the booted kernel pulls the image itself. It is not the default on
anything that is not EFI, which is every SeaBIOS guest here, so the
profile has to ask for it. Per node that is 76s to 59s; end to end,
with two nodes, the phase goes 82s to 65s and a provision 194s to 183s.

This needed a fix in the image first. The slimming pass rebuilt the
initramfs without --add wwinit, so the two-stage initramfs had no way
to fetch a root filesystem: the node booted it, failed, and iPXE
rebooted it every 15 seconds. That cost a 280s measurement I first read
as two-stage being slower. The build now adds the module explicitly,
builds --no-hostonly since dracut is running in a container against an
unrelated build host, and fails the build if the module is not in the
result.

The profile write is read back rather than assumed. wwctl exits 0 on
settings it silently ignores - --nettagadd on this same command does
exactly that - and the failure mode here is a node that boots, finds no
root, and reboots forever without saying why.
2026-09-02 13:08:28 +02:00
..