From ee3a1a478791a57fb624cc4c013b1784c1dd9490 Mon Sep 17 00:00:00 2001 From: Ilker Manap Date: Tue, 27 Oct 2026 10:13:16 +0100 Subject: [PATCH] deploy: cancelled job restores the previous machine state; site: deployment features Co-Authored-By: Claude Fable 5.1 --- cmd/rollcall/deploy.go | 11 +++++++++++ site/index.html | 3 +++ 2 files changed, 14 insertions(+) diff --git a/cmd/rollcall/deploy.go b/cmd/rollcall/deploy.go index 4415c10..9fb4051 100644 --- a/cmd/rollcall/deploy.go +++ b/cmd/rollcall/deploy.go @@ -528,6 +528,17 @@ func (a *App) afterJob(ctx context.Context, m *Machine, j *Job, state, errMsg st m, _ = a.store.Get(ctx, m.ID) _ = a.writePXE(m) _ = a.store.AddEvent(ctx, m.ID, "released", fmt.Sprintf("job=%s disk=%s wipe=%s", j.ID, sp.Disk, sp.Wipe)) + case state == "cancelled": + // nothing happened on the machine (as far as we know): back to the previous state + if m.OS != nil { + _ = a.store.SetState(ctx, m.ID, "deployed") + m, _ = a.store.Get(ctx, m.ID) + _ = a.writePXEDeployed(m) + } else { + _ = a.store.SetState(ctx, m.ID, "ready") + _ = a.writePXE(m) + } + _ = a.store.AddEvent(ctx, m.ID, j.Kind+" cancelled", "job="+j.ID) default: _ = a.store.SetState(ctx, m.ID, j.Kind+"-failed") m, _ = a.store.Get(ctx, m.ID) diff --git a/site/index.html b/site/index.html index 85761cd..1a4da11 100644 --- a/site/index.html +++ b/site/index.html @@ -116,6 +116,9 @@

Virtual machines too

No in-band IPMI? Rollcall can map MACs to known BMCs. The repo ships pve-vbmc, an IPMI BMC emulator for Proxmox VMs, so the whole flow runs in a lab.

Two tokens, two audiences

The live image authenticates with an agent token baked into the kernel command line; people and automation use a separate admin bearer token.

Re-commission on demand

Drop the PXE override, set bootdev pxe and power-cycle through the BMC with one click or rollcall recommission ID -now.

+

OS deployment from cloud images

Debian, Ubuntu, Rocky, AlmaLinux and CentOS Stream images are streamed onto the disk (curl | zstd | dd, sha256-verified) and seeded for cloud-init: hostname, SSH keys, optional upgrade, phone-home. No installer.

+

Images that stay fresh

rollcall os sync watches the vendors' checksum files nightly, downloads only what changed, verifies it and flips a current symlink. Pin or promote versions; running jobs keep theirs.

+

Stateless HPC nodes

Or skip the disk: boot a Debian root image into RAM, overlay slurm.conf, munge key, hosts and SSH keys rendered per node from the inventory.