zfs: re-run the native import after zfs-pool-init creates the pool #43

Merged
ginjiruu merged 1 commit from zfs-import-after-create into main 2026-11-18 02:36:53 +00:00
Owner

After every k3s-reset --cluster, zfs-import-tank is left FAILED on the thinks: it runs before zfs-pool-init creates the pool on the blank disk, and nothing re-runs it. node-health's storage tier then reports the node sick, so the next deploy gets reverted by the deploy dead-man. Hit twice in the 2026-11-17 c1 window and cleared by hand each time.

Fix: right after zpool create, zfs-pool-init runs systemctl reset-failed + start --no-block on the import unit, which then finds the pool imported and exits 0.

  • task gate green.
  • Changes only the hosts with a ZFS data pool (the thinks); pi-01 and test-01 build identically to main.
  • Merging this is also the end-to-end test that comin deploys again after the comin#159 unwedge.
After every `k3s-reset --cluster`, `zfs-import-tank` is left FAILED on the thinks: it runs before `zfs-pool-init` creates the pool on the blank disk, and nothing re-runs it. node-health's storage tier then reports the node sick, so the next deploy gets reverted by the deploy dead-man. Hit twice in the 2026-11-17 c1 window and cleared by hand each time. Fix: right after `zpool create`, `zfs-pool-init` runs `systemctl reset-failed` + `start --no-block` on the import unit, which then finds the pool imported and exits 0. - `task gate` green. - Changes only the hosts with a ZFS data pool (the thinks); pi-01 and test-01 build identically to main. - Merging this is also the end-to-end test that comin deploys again after the comin#159 unwedge.
zfs: re-run the native import after zfs-pool-init creates the pool
Some checks failed
Validate Nix Flake / validate-nix (push) Has been cancelled
578aaefdc7
On a blank data disk (every k3s-reset --cluster) the nixpkgs import unit
runs first, finds no pool, and stays FAILED; zfs-pool-init then creates the
pool, but nothing re-runs the import. node-health's storage tier reads the
failed unit as a sick node, so the next deploy would be reverted by the
dead-man. Hit on all three thinks after both resets of the 2026-11-17 c1
window and cleared by hand. zfs-pool-init now resets and restarts the import
unit right after a create; the import sees the pool and exits 0.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lab/machine-configs!43
No description provided.