Rollback layers treat node faults (DEGRADED pool) as bad generations #6
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/machine-configs#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
deploy-health(the dead-man's check) andreboot-boot-verify(the boot-counting check) run one shared node-health script. Some of its checks depend on the generation: units, k3s active, node Ready, requiredPods. Others depend only on the hardware:pool tank is not imported ONLINE. A hardware fault fails the check whatever generation is running, so the rollback layers blame a good commit for a bad disk.Evidence: think-03, 2026-11-05 (UTC)
err=5) on a zvol and marked the vdevata-TOSHIBA_THNSN81Q92CSE_969S10OMTB4VFAULTED, then DEGRADED. The kernel logged no ATA error. SMARTSATA_PHY_Error_Countwent from 744 to 748, with 4 host-to-device CRC errors. It is the same marginal link as the 2026-11-04 episode. The M600 Tiny's 2.5" drive plugs straight into the board's SATA connector, so there is no cable to swap.8e69d1d(ranfpk).deploy-healthfailed ontank. At 03:03Z the dead-man set the boot default back to1bqbfsand rancomin suspend(DEPLOY-DEADMAN-REVERTED).reboot-boot-verifyfailed ontankin every counted boot. It spent 3 tries on the1bqbfsentry (gen 28) and 3 on the8e69d1dentry (gen 27). It hit the 6-reboot cap at 04:17Z, and gen 26 booted alert-only.+0-3. Neither generation had anything wrong with it.task fleet:statusdid not show any of this. It prints the deployment's commit (8e69d1d,done), not whether/run/current-systemmatches the deployment's out path.Recovery (done by hand):
zpool clear tank, then a scrub, thencomin suspend; comin resume. That pair is needed because after the rebootstore.jsonstill haddeployer.is_suspended=truewhile the manager reported not suspended, so a barecomin resumefailed with "the manager is not suspended".Proposal
Split the shared health script into two classes:
With the split, the dead-man and boot counting act only on generation checks. A failed node check leaves a red unit and a clear message ("tank DEGRADED: hardware, not this deploy"), and it never reverts, suspends comin or spends a boot try. A pool that fails to import at all is the open question: it could be generation-caused (a ZFS module or kernel change) or node-caused.
Also:
fleet:status: flag a node whose running system differs from the deployed out path, and a suspended comin.store.json/manager mismatch above. Check against comin 9668b02deployer.go:139-142, and either documentsuspend; resumeas the cure or report it upstream.lpm-pol 3, 567k PhyRdy→PhyNRdy transitions in the SMART PHY log). Trylibata.force=1:nolpm(or1:3.0G) on think-03 before replacing the drive.Refs: ADR-0002 "Field results" and "Remaining gap" (commit
9ce8c84).