updates: a PROVISIONED member device that is unreachable (dead box, off the mesh) stops EVERY gateway update — Whakatōhea Demo stuck on 2026.10.3150 since 10-04, retrying 3190 every 5 min #2043

Closed
opened 2026-10-06 18:13:25 +00:00 by ben · 3 comments
Owner

What happened

Whakatōhea Demo, read from the gateway (idss-gateway-whakatohea-demo-21bb) on 2026-10-06:

  • GET 127.0.0.1:8080/api/v1/updates → current = 2026.10.3150 (f24274e6), converged: 1, total: 2; automatic = 2026.10.3190 (b3f39c27, published 2026-10-04 19:30Z).
  • The control-plane journal has logged the same line every 5 minutes since 10-04:
level=WARN msg="update rollout failed" revision=b3f39c27… err="update: seed node-req-0006: clan: connectivity on node-req-0006: could not reach the node: ssh: connect to host 100.83.245.38 port 22: No route to host"

node-req-0006 is Delilah — the Wi-Fi-only device whose full install kexec'd into a wireless-less installer on 2026-10-03 (#2041, closed). It is provisioned (carries services, has a captured deploy target 100.83.245.38) and dead. The gateway — the one node that matters — has not taken a release in two days, and nothing newer than 3150 will reach the demo until the box comes back or is removed.

Cause

internal/update/rollout.go seed loop (Stage 1). #2016/#2017 parted the clan.ErrNoDeployTarget case into a benign skip (no services) and a loud, node-scoped SeedFailed (provisioned, target missing). But a node whose target IS captured and whose seed fails on connectivity falls through to the "any OTHER seed failure" branch (rollout.go:473-478): res.Fault + retainRollout + return err — fatal for the whole rollout, gateway included. That branch was written for a transport fault of the gateway's own supply, not for one member box being off.

So the state #2017 fixed ("one unreachable box held the fleet hostage") still exists for the most ordinary failure a community will have: a member device that is switched off, moved, or lost.

What to build

  • Part the connectivity case from a genuine supply/transport fault: a seed that fails because that node cannot be reached (clan connectivity error on the node — the could not reach the node / ssh connect class) is a loud per-node NodeFailure in res.SeedFailed, scoped to that node, excluded from reachable exactly like #2017's lost-target case. The gateway's stage and every reachable node still land and converge.
  • res.Fault (updates stopped) stays only for a fault that is not attributable to one node (the gateway's own supply, the store, the release artifacts).
  • The Updates surface already carries SeedFailed (#2017's SeedFailureView): the row for the dead node must say it is unreachable and that the rest of the fleet updated.
  • The ADR 0067 retry throttle applies to the rollout as a whole; a node-scoped failure must not keep the fleet on a 5-minute retry loop — the next release (or the next tick after the node answers) retries it.
  • Tests beside internal/update/rollout_skip_test.go: a 2-node fleet where the member node's seed returns a connectivity error → gateway lands, SeedFailed names the node, current.converged = 1 of 2, no Fault; a non-node transport fault still stops the rollout.

Not in scope

Removing Delilah from the demo's fleet (hand step), and #2041's installer-on-Wi-Fi fix.

Refs

#2016, #2017 (the no-target halves), #2025 (a helper's failure never rolls back the gateway), #2027, #2041. ADR 0100 (fail loud), ADR 0248 (the update lane).

## What happened Whakatōhea Demo, read from the gateway (`idss-gateway-whakatohea-demo-21bb`) on 2026-10-06: - `GET 127.0.0.1:8080/api/v1/updates` → `current` = `2026.10.3150` (`f24274e6`), `converged: 1, total: 2`; `automatic` = `2026.10.3190` (`b3f39c27`, published 2026-10-04 19:30Z). - The control-plane journal has logged the same line **every 5 minutes since 10-04**: ``` level=WARN msg="update rollout failed" revision=b3f39c27… err="update: seed node-req-0006: clan: connectivity on node-req-0006: could not reach the node: ssh: connect to host 100.83.245.38 port 22: No route to host" ``` `node-req-0006` is Delilah — the Wi-Fi-only device whose full install kexec'd into a wireless-less installer on 2026-10-03 (#2041, closed). It is **provisioned** (carries services, has a captured deploy target `100.83.245.38`) and **dead**. The gateway — the one node that matters — has not taken a release in two days, and nothing newer than 3150 will reach the demo until the box comes back or is removed. ## Cause `internal/update/rollout.go` seed loop (Stage 1). #2016/#2017 parted the `clan.ErrNoDeployTarget` case into a benign skip (no services) and a loud, **node-scoped** `SeedFailed` (provisioned, target missing). But a node whose target IS captured and whose seed fails on **connectivity** falls through to the "any OTHER seed failure" branch (`rollout.go:473-478`): `res.Fault` + `retainRollout` + `return err` — **fatal for the whole rollout**, gateway included. That branch was written for a transport fault of the gateway's own supply, not for one member box being off. So the state #2017 fixed ("one unreachable box held the fleet hostage") still exists for the most ordinary failure a community will have: a member device that is switched off, moved, or lost. ## What to build - Part the connectivity case from a genuine supply/transport fault: a seed that fails because **that node** cannot be reached (`clan` connectivity error on the node — the `could not reach the node` / ssh connect class) is a **loud per-node `NodeFailure` in `res.SeedFailed`**, scoped to that node, excluded from `reachable` exactly like #2017's lost-target case. The gateway's stage and every reachable node still land and converge. - `res.Fault` (updates stopped) stays only for a fault that is not attributable to one node (the gateway's own supply, the store, the release artifacts). - The Updates surface already carries `SeedFailed` (#2017's `SeedFailureView`): the row for the dead node must say it is unreachable and that the rest of the fleet updated. - The ADR 0067 retry throttle applies to the rollout as a whole; a node-scoped failure must not keep the fleet on a 5-minute retry loop — the next release (or the next tick after the node answers) retries it. - Tests beside `internal/update/rollout_skip_test.go`: a 2-node fleet where the member node's seed returns a connectivity error → gateway lands, `SeedFailed` names the node, `current.converged` = 1 of 2, no `Fault`; a non-node transport fault still stops the rollout. ## Not in scope Removing Delilah from the demo's fleet (hand step), and #2041's installer-on-Wi-Fi fix. ## Refs #2016, #2017 (the no-target halves), #2025 (a helper's failure never rolls back the gateway), #2027, #2041. ADR 0100 (fail loud), ADR 0248 (the update lane).

swarm-claim host=matou-dev-server-01 run=40672
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=40672 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #2043 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 773d33daab is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'internal/update/rollout.go' is not in the diff of the claimed commits
  • changed_files: 'internal/update/rollout_skip_test.go' is not in the diff of the claimed commits
envelope
{
  "issue": 2043,
  "status": "success",
  "commits": [
    "773d33daab08928c2d12714386cfea15256108d2"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/update/rollout.go",
    "internal/update/rollout_skip_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/update/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/update/",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/update/rollout.go internal/update/rollout_skip_test.go",
      "exit_code": 0
    },
    {
      "command": "go build ./internal/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A connectivity seed failure on a node is a loud per-node NodeFailure in res.SeedFailed, scoped to that node and excluded from reachable (not a fatal res.Fault)": "internal/update/rollout.go seed loop adds the seedNodeUnreachable branch (appends to res.SeedFailed, sets skippedSet, continue) before the fatal res.Fault branch; proven by TestRollout_UnreachableNode_NodeScopedNotFatal",
    "The gateway's stage and every reachable node still land and converge": "TestRollout_UnreachableNode_NodeScopedNotFatal asserts res.Applied && res.Healthy, gateway deployed last, delilah never in res.Order",
    "res.Fault (updates stopped) stays only for a fault not attributable to one node (supply/store/artifacts)": "a non-clan.Failure or non-node-reach-class error still falls through to res.Fault; reframed TestRollout_FatalSeedFailure_SurfacesOnPanel injects a FailConfigEval supply fault that stays fatal and surfaces on the panel",
    "The Updates surface row for the dead node says it is unreachable and that the rest of the fleet updated": "SeedFailed.Reason = 'is unreachable — ... the rest of the fleet updated ...' flows via composeSeedFailed into SeedFailureView; TestRollout_UnreachableNode_NodeScopedNotFatal asserts view.SeedFailed names delilah with reason containing 'unreachable'",
    "A node-scoped failure does not keep the fleet on a 5-minute retry loop — the next release or the next tick after the node answers retries it (ADR 0067)": "the rollout reaches res.Applied and o.dropActive(revision) removes the release from the active list, so it leaves the retry loop; asserted by res.Applied in the new test and current.Revision advancing to b77e10d",
    "current.converged = 1 of 2 (the dead box counted in total but not converged)": "rollout.go sets Total: len(reachable) + len(res.SeedFailed), Converged: len(reachable) - len(res.DeployFailed); TestRollout_UnreachableNode_NodeScopedNotFatal asserts s.Current.Converged == 1 && s.Current.Total == 2",
    "Tests beside internal/update/rollout_skip_test.go: node-scoped connectivity case AND a non-node transport fault still stops the rollout": "TestRollout_UnreachableNode_NodeScopedNotFatal (node-scoped) and TestRollout_FatalSeedFailure_SurfacesOnPanel (non-node fault stays fatal) in internal/update/rollout_skip_test.go"
  },
  "summary": "A seed that fails on a node-reach connectivity class is now a node-scoped SeedFailure, so one dead member device no longer stops every gateway update; the fleet converges 1 of 2 and leaves the retry loop.",
  "blockers": []
}
**close-report** for #2043 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 773d33daab08928c2d12714386cfea15256108d2 is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'internal/update/rollout.go' is not in the diff of the claimed commits - changed_files: 'internal/update/rollout_skip_test.go' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 2043, "status": "success", "commits": [ "773d33daab08928c2d12714386cfea15256108d2" ], "changed_files": [ "STATUS.md", "internal/update/rollout.go", "internal/update/rollout_skip_test.go" ], "tests": [ { "command": "go test ./internal/update/", "exit_code": 0 }, { "command": "go vet ./internal/update/", "exit_code": 0 }, { "command": "gofmt -l internal/update/rollout.go internal/update/rollout_skip_test.go", "exit_code": 0 }, { "command": "go build ./internal/...", "exit_code": 0 } ], "criteria": { "A connectivity seed failure on a node is a loud per-node NodeFailure in res.SeedFailed, scoped to that node and excluded from reachable (not a fatal res.Fault)": "internal/update/rollout.go seed loop adds the seedNodeUnreachable branch (appends to res.SeedFailed, sets skippedSet, continue) before the fatal res.Fault branch; proven by TestRollout_UnreachableNode_NodeScopedNotFatal", "The gateway's stage and every reachable node still land and converge": "TestRollout_UnreachableNode_NodeScopedNotFatal asserts res.Applied && res.Healthy, gateway deployed last, delilah never in res.Order", "res.Fault (updates stopped) stays only for a fault not attributable to one node (supply/store/artifacts)": "a non-clan.Failure or non-node-reach-class error still falls through to res.Fault; reframed TestRollout_FatalSeedFailure_SurfacesOnPanel injects a FailConfigEval supply fault that stays fatal and surfaces on the panel", "The Updates surface row for the dead node says it is unreachable and that the rest of the fleet updated": "SeedFailed.Reason = 'is unreachable — ... the rest of the fleet updated ...' flows via composeSeedFailed into SeedFailureView; TestRollout_UnreachableNode_NodeScopedNotFatal asserts view.SeedFailed names delilah with reason containing 'unreachable'", "A node-scoped failure does not keep the fleet on a 5-minute retry loop — the next release or the next tick after the node answers retries it (ADR 0067)": "the rollout reaches res.Applied and o.dropActive(revision) removes the release from the active list, so it leaves the retry loop; asserted by res.Applied in the new test and current.Revision advancing to b77e10d", "current.converged = 1 of 2 (the dead box counted in total but not converged)": "rollout.go sets Total: len(reachable) + len(res.SeedFailed), Converged: len(reachable) - len(res.DeployFailed); TestRollout_UnreachableNode_NodeScopedNotFatal asserts s.Current.Converged == 1 && s.Current.Total == 2", "Tests beside internal/update/rollout_skip_test.go: node-scoped connectivity case AND a non-node transport fault still stops the rollout": "TestRollout_UnreachableNode_NodeScopedNotFatal (node-scoped) and TestRollout_FatalSeedFailure_SurfacesOnPanel (non-node fault stays fatal) in internal/update/rollout_skip_test.go" }, "summary": "A seed that fails on a node-reach connectivity class is now a node-scoped SeedFailure, so one dead member device no longer stops every gateway update; the fleet converges 1 of 2 and leaves the retry loop.", "blockers": [] } ``` </details>

close-report for #2043 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 2043,
  "status": "success",
  "commits": [
    "773d33daab08928c2d12714386cfea15256108d2"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/update/rollout.go",
    "internal/update/rollout_skip_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/update/",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/update/",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/update/rollout.go internal/update/rollout_skip_test.go",
      "exit_code": 0
    },
    {
      "command": "go build ./internal/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A connectivity seed failure on a node is a loud per-node NodeFailure in res.SeedFailed, scoped to that node and excluded from reachable (not a fatal res.Fault)": "internal/update/rollout.go seed loop adds the seedNodeUnreachable branch (appends to res.SeedFailed, sets skippedSet, continue) before the fatal res.Fault branch; proven by TestRollout_UnreachableNode_NodeScopedNotFatal",
    "The gateway's stage and every reachable node still land and converge": "TestRollout_UnreachableNode_NodeScopedNotFatal asserts res.Applied && res.Healthy, gateway deployed last, delilah never in res.Order",
    "res.Fault (updates stopped) stays only for a fault not attributable to one node (supply/store/artifacts)": "a non-clan.Failure or non-node-reach-class error still falls through to res.Fault; reframed TestRollout_FatalSeedFailure_SurfacesOnPanel injects a FailConfigEval supply fault that stays fatal and surfaces on the panel",
    "The Updates surface row for the dead node says it is unreachable and that the rest of the fleet updated": "SeedFailed.Reason = 'is unreachable — ... the rest of the fleet updated ...' flows via composeSeedFailed into SeedFailureView; TestRollout_UnreachableNode_NodeScopedNotFatal asserts view.SeedFailed names delilah with reason containing 'unreachable'",
    "A node-scoped failure does not keep the fleet on a 5-minute retry loop — the next release or the next tick after the node answers retries it (ADR 0067)": "the rollout reaches res.Applied and o.dropActive(revision) removes the release from the active list, so it leaves the retry loop; asserted by res.Applied in the new test and current.Revision advancing to b77e10d",
    "current.converged = 1 of 2 (the dead box counted in total but not converged)": "rollout.go sets Total: len(reachable) + len(res.SeedFailed), Converged: len(reachable) - len(res.DeployFailed); TestRollout_UnreachableNode_NodeScopedNotFatal asserts s.Current.Converged == 1 && s.Current.Total == 2",
    "Tests beside internal/update/rollout_skip_test.go: node-scoped connectivity case AND a non-node transport fault still stops the rollout": "TestRollout_UnreachableNode_NodeScopedNotFatal (node-scoped) and TestRollout_FatalSeedFailure_SurfacesOnPanel (non-node fault stays fatal) in internal/update/rollout_skip_test.go"
  },
  "summary": "A seed that fails on a node-reach connectivity class is now a node-scoped SeedFailure, so one dead member device no longer stops every gateway update; the fleet converges 1 of 2 and leaves the retry loop.",
  "blockers": []
}
**close-report** for #2043 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 2043, "status": "success", "commits": [ "773d33daab08928c2d12714386cfea15256108d2" ], "changed_files": [ "STATUS.md", "internal/update/rollout.go", "internal/update/rollout_skip_test.go" ], "tests": [ { "command": "go test ./internal/update/", "exit_code": 0 }, { "command": "go vet ./internal/update/", "exit_code": 0 }, { "command": "gofmt -l internal/update/rollout.go internal/update/rollout_skip_test.go", "exit_code": 0 }, { "command": "go build ./internal/...", "exit_code": 0 } ], "criteria": { "A connectivity seed failure on a node is a loud per-node NodeFailure in res.SeedFailed, scoped to that node and excluded from reachable (not a fatal res.Fault)": "internal/update/rollout.go seed loop adds the seedNodeUnreachable branch (appends to res.SeedFailed, sets skippedSet, continue) before the fatal res.Fault branch; proven by TestRollout_UnreachableNode_NodeScopedNotFatal", "The gateway's stage and every reachable node still land and converge": "TestRollout_UnreachableNode_NodeScopedNotFatal asserts res.Applied && res.Healthy, gateway deployed last, delilah never in res.Order", "res.Fault (updates stopped) stays only for a fault not attributable to one node (supply/store/artifacts)": "a non-clan.Failure or non-node-reach-class error still falls through to res.Fault; reframed TestRollout_FatalSeedFailure_SurfacesOnPanel injects a FailConfigEval supply fault that stays fatal and surfaces on the panel", "The Updates surface row for the dead node says it is unreachable and that the rest of the fleet updated": "SeedFailed.Reason = 'is unreachable — ... the rest of the fleet updated ...' flows via composeSeedFailed into SeedFailureView; TestRollout_UnreachableNode_NodeScopedNotFatal asserts view.SeedFailed names delilah with reason containing 'unreachable'", "A node-scoped failure does not keep the fleet on a 5-minute retry loop — the next release or the next tick after the node answers retries it (ADR 0067)": "the rollout reaches res.Applied and o.dropActive(revision) removes the release from the active list, so it leaves the retry loop; asserted by res.Applied in the new test and current.Revision advancing to b77e10d", "current.converged = 1 of 2 (the dead box counted in total but not converged)": "rollout.go sets Total: len(reachable) + len(res.SeedFailed), Converged: len(reachable) - len(res.DeployFailed); TestRollout_UnreachableNode_NodeScopedNotFatal asserts s.Current.Converged == 1 && s.Current.Total == 2", "Tests beside internal/update/rollout_skip_test.go: node-scoped connectivity case AND a non-node transport fault still stops the rollout": "TestRollout_UnreachableNode_NodeScopedNotFatal (node-scoped) and TestRollout_FatalSeedFailure_SurfacesOnPanel (non-node fault stays fatal) in internal/update/rollout_skip_test.go" }, "summary": "A seed that fails on a node-reach connectivity class is now a node-scoped SeedFailure, so one dead member device no longer stops every gateway update; the fleet converges 1 of 2 and leaves the retry loop.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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
Matou/idss#2043
No description provided.