deploy: cancelled job restores the previous machine state; site: deployment features
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
fad4e1c8bd
commit
ee3a1a4787
2 files changed
+14
No files matched your search
@@ -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)
|
||||
|
||||
@@ -116,6 +116,9 @@
|
||||
<div class="card"><h3>Virtual machines too</h3><p>No in-band IPMI? Rollcall can map MACs to known BMCs. The repo ships <code>pve-vbmc</code>, an IPMI BMC emulator for Proxmox VMs, so the whole flow runs in a lab.</p></div>
|
||||
<div class="card"><h3>Two tokens, two audiences</h3><p>The live image authenticates with an agent token baked into the kernel command line; people and automation use a separate admin bearer token.</p></div>
|
||||
<div class="card"><h3>Re-commission on demand</h3><p>Drop the PXE override, set <code>bootdev pxe</code> and power-cycle through the BMC with one click or <code>rollcall recommission ID -now</code>.</p></div>
|
||||
<div class="card"><h3>OS deployment from cloud images</h3><p>Debian, Ubuntu, Rocky, AlmaLinux and CentOS Stream images are streamed onto the disk (<code>curl | zstd | dd</code>, sha256-verified) and seeded for cloud-init: hostname, SSH keys, optional upgrade, phone-home. No installer.</p></div>
|
||||
<div class="card"><h3>Images that stay fresh</h3><p><code>rollcall os sync</code> watches the vendors' checksum files nightly, downloads only what changed, verifies it and flips a <code>current</code> symlink. Pin or promote versions; running jobs keep theirs.</p></div>
|
||||
<div class="card"><h3>Stateless HPC nodes</h3><p>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.</p></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in new issue
Block a user