Files
ilkerandClaude Opus 5.5 876eeea4b7 baremetal: wipe a released machine's disks before it is given again
Releasing a cluster now cleans each machine instead of clearing its port:
power off, into a cleaning VLAN (vlan_base+255) served only by
hpcod-clean on the KVM host, a network boot into a wipe image built from
that host's kernel and busybox, which discards each disk, zeroes and reads
back its ends (or all of it), and reports with a one-time token. The port
is freed only on a complete report of that cleaning with every disk
verified; otherwise the machine is powered off and held in the cleaning
VLAN, which discovery shows, and the release fails. hpcod baremetal clean
retries one. Setup installs and builds it on the KVM host (step clean);
the uplink always carries the cleaning VLAN.

Found on the way: the image first loaded every module it carries, which
brought up scsi_debug and zeroed its fake disk; drivers are now loaded by
modalias for the hardware present. A failed cleaning first left the
machine running; it is now powered off.

Checked on the simulated rack, each machine now with a local disk: data
written to two machines' disks read back as zero over all of them after
hpcod selftest -compute 2, whose release, with both cleanings, took 48 s;
a cleaning with the service stopped left the machine off and held, and a
retry freed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 20:51:45 +01:00
..