Repository navigation
battery-operator v0.4.1: Pools deleted with battery's draining
Pools are now deleted with battery v0.4.0's own draining, and a claim no longer binds to a Pool that is being deleted.
Deleting a Pool
- The Pool Controller calls battery's
DeletePool. battery drains the Pool's available, provisioning and quarantined MicroVMs itself, and removes the Pool. - While a MicroVM of the Pool is leased, battery refuses. The Pool keeps its finalizer and shows
Readyfalse with reasonDeletionBlockedand the leased count (PO-043). Its spec is set to a drained spec, so battery does not replace MicroVMs meanwhile (PO-042). The Pool goes once the last claim is released. - The Operator's own drain from v0.2, which claimed and released each MicroVM, is gone (PO-030 to PO-034 withdrawn, replaced by PO-042 to PO-044).
Claims on a deleting Pool
A claim whose Pool is being deleted does not call ClaimVM. It stays Pending with reason PoolDeleting and retries with backoff; once the Pool is gone it shows PoolNotFound (CL-063). A Bound claim is not affected. One race remains: a Pool deleted between the claim's read of it and ClaimVM can still give the claim a MicroVM, which then holds the deletion like any Bound claim.
Known issue
battery v0.4.0 still leaks a MicroVM whose create hook fails while flintlockd is down (liquidmetal-dev/battery#131). The fix is liquidmetal-dev/battery#132, not yet released.
Artifacts
All for linux/amd64 and linux/arm64:
ghcr.io/phoban01/battery-operator:v0.4.1@sha256:089b90e3ca1bf75610c0f71f11015bb36cd0c4b0addb1121970bbfc7d2a43dc3
ghcr.io/phoban01/battery-operator/exec-agent:v0.4.1@sha256:f103d75102fa909bdbd8f74d6a95d671ce0a123d5ba440776f5ad1cb83df0690
ghcr.io/phoban01/battery-operator/host-image:v0.4.1@sha256:4dbba809ef5e5610bf50100fc70edcea5bb37da36a1d14154bca50df660fd0be
ghcr.io/phoban01/battery-operator/guest-kernel:v0.4.1@sha256:0eb901c1f9ce9000f3c8d3e166aec8e06a64a8d233b140aa79062882cede4751
ghcr.io/phoban01/battery-operator/guest-rootfs:v0.4.1@sha256:74b6f247e8d27d7cbb34db8aaeb444d889f46a5fa555c459885bc5e5e96a1ba9
Manifests artifact:
ghcr.io/phoban01/battery-operator/manifests:v0.4.1@sha256:ec872c133c5ed02e924a30bd63ba39182695499e6d7cc4df0818c2c7ff5efd7a
flux pull artifact oci://ghcr.io/phoban01/battery-operator/manifests:v0.4.1 --output ./battery-operator