Rollback layers treat node faults (DEGRADED pool) as bad generations #6

Open
opened 2026-11-05 13:42:59 +00:00 by ginjiruu · 0 comments
Owner

Problem

deploy-health (the dead-man's check) and reboot-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)

  1. 01:09-01:11Z: ZFS logged EIO writes (err=5) on a zvol and marked the vdev ata-TOSHIBA_THNSN81Q92CSE_969S10OMTB4V FAULTED, then DEGRADED. The kernel logged no ATA error. SMART SATA_PHY_Error_Count went 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.
  2. ~02:53Z: comin switched to 8e69d1d (ranfpk). deploy-health failed on tank. At 03:03Z the dead-man set the boot default back to 1bqbfs and ran comin suspend (DEPLOY-DEADMAN-REVERTED).
  3. 04:10Z: kured rebooted the node. reboot-boot-verify failed on tank in every counted boot. It spent 3 tries on the 1bqbfs entry (gen 28) and 3 on the 8e69d1d entry (gen 27). It hit the 6-reboot cap at 04:17Z, and gen 26 booted alert-only.
  4. Result: the node was Ready on the pre-watchdog generation, comin was suspended, verify was red, and both newer boot entries ended +0-3. Neither generation had anything wrong with it.

task fleet:status did not show any of this. It prints the deployment's commit (8e69d1d, done), not whether /run/current-system matches the deployment's out path.

Recovery (done by hand): zpool clear tank, then a scrub, then comin suspend; comin resume. That pair is needed because after the reboot store.json still had deployer.is_suspended=true while the manager reported not suspended, so a bare comin resume failed with "the manager is not suspended".

Proposal

Split the shared health script into two classes:

  • Generation checks, which may roll back: failed system units, k3s active, node Ready, requiredPods Ready.
  • Node checks, which only alert: pool health (DEGRADED/FAULTED/SUSPENDED), and later SMART or link errors.

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.
  • comin suspend state after a restart: see the store.json/manager mismatch above. Check against comin 9668b02 deployer.go:139-142, and either document suspend; resume as the cure or report it upstream.
  • Mitigating the think-03 link: SATA LPM is on (lpm-pol 3, 567k PhyRdy→PhyNRdy transitions in the SMART PHY log). Try libata.force=1:nolpm (or 1:3.0G) on think-03 before replacing the drive.

Refs: ADR-0002 "Field results" and "Remaining gap" (commit 9ce8c84).

## Problem `deploy-health` (the dead-man's check) and `reboot-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) 1. 01:09-01:11Z: ZFS logged EIO writes (`err=5`) on a zvol and marked the vdev `ata-TOSHIBA_THNSN81Q92CSE_969S10OMTB4V` FAULTED, then DEGRADED. The kernel logged no ATA error. SMART `SATA_PHY_Error_Count` went 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. 2. ~02:53Z: comin switched to 8e69d1d (`ranfpk`). `deploy-health` failed on `tank`. At 03:03Z the dead-man set the boot default back to `1bqbfs` and ran `comin suspend` (`DEPLOY-DEADMAN-REVERTED`). 3. 04:10Z: kured rebooted the node. `reboot-boot-verify` failed on `tank` in every counted boot. It spent 3 tries on the `1bqbfs` entry (gen 28) and 3 on the 8e69d1d entry (gen 27). It hit the 6-reboot cap at 04:17Z, and gen 26 booted alert-only. 4. Result: the node was Ready on the pre-watchdog generation, comin was suspended, verify was red, and both newer boot entries ended `+0-3`. Neither generation had anything wrong with it. `task fleet:status` did not show any of this. It prints the deployment's commit (8e69d1d, `done`), not whether `/run/current-system` matches the deployment's out path. Recovery (done by hand): `zpool clear tank`, then a scrub, then `comin suspend; comin resume`. That pair is needed because after the reboot `store.json` still had `deployer.is_suspended=true` while the manager reported not suspended, so a bare `comin resume` failed with "the manager is not suspended". ## Proposal Split the shared health script into two classes: - **Generation checks**, which may roll back: failed system units, k3s active, node Ready, requiredPods Ready. - **Node checks**, which only alert: pool health (DEGRADED/FAULTED/SUSPENDED), and later SMART or link errors. 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. - comin suspend state after a restart: see the `store.json`/manager mismatch above. Check against comin 9668b02 `deployer.go:139-142`, and either document `suspend; resume` as the cure or report it upstream. - Mitigating the think-03 link: SATA LPM is on (`lpm-pol 3`, 567k PhyRdy→PhyNRdy transitions in the SMART PHY log). Try `libata.force=1:nolpm` (or `1:3.0G`) on think-03 before replacing the drive. Refs: ADR-0002 "Field results" and "Remaining gap" (commit 9ce8c84).
Sign in to join this conversation.
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#6
No description provided.