updates: an enrolled but not-yet-set-up device BLOCKS every community update — the rollout seeds every inventory node, the new node has no deploy target, and the gateway sits behind it #2017

Closed
opened 2026-09-30 04:27:10 +00:00 by ben · 2 comments
Owner

Symptom

From the moment a member device enrolled on Whakatōhea Demo (node-req-0002, bens-mac-04 VM guest, 2026-09-30 03:32Z) every automatic update to the community failed, every 5 minutes:

03:43:04Z WARN update rollout failed revision=fe728d64… err="update: seed node-req-0002: clan: Seed: node node-req-0002 has no deploy target — captured fresh per operation from Netbird at enrollment (ADR 0039; engine-adapters:clan-adapter-enroll #163)"
… b76bcc87…, 558441248… (8 failures in 45 min)

The gateway stayed on 2026.09.3061 with 2026.09.3119 waiting. Nothing on the panel said updates had stopped. It cleared only when the operator provisioned the device (04:1xZ): the provision deploy wrote deploy target for node-req-0002 re-captured as root@100.83.156.15 into the config repo.

Cause

  • Enrollment admits the node to the inventory without a deploy.targetHost. The target is captured only by provisioning's deploy (internal/provision/deploy.go, "captured fresh above — ADR 0039"), not at enrollment as the error text claims (#163).
  • update/rollout.go:348 seeds every inventory node before any deploy and returns on the first seed error. An enrolled-but-unset-up device has no target and no services, and it blocks the whole fleet, the gateway included.

A device an operator never sets up would stop the community's updates, security releases included, for as long as it stays that way.

Fix

  • The rollout seeds/deploys only nodes that carry work: provisioned nodes, or nodes with a recorded target. A node with no target and no services is skipped with one journal line, never a rollout failure. A provisioned node whose target is missing stays a loud failure for that node only (ADR 0100). It must not fail the gateway's stage.
  • Either capture the target at enrollment, as the error text and #163 say, or correct the error text to name where the target really comes from.
  • A failed rollout surfaces on the panel's Updates row, so an operator can see that updates have stopped.
  • Seam test: gateway + one enrolled, unprovisioned node → the gateway's rollout converges.

Found joining bens-mac-04; siblings #2002–#2007, #2011, #2013, #2014.

## Symptom From the moment a member device enrolled on Whakatōhea Demo (`node-req-0002`, `bens-mac-04` VM guest, 2026-09-30 03:32Z) **every automatic update to the community failed**, every 5 minutes: ``` 03:43:04Z WARN update rollout failed revision=fe728d64… err="update: seed node-req-0002: clan: Seed: node node-req-0002 has no deploy target — captured fresh per operation from Netbird at enrollment (ADR 0039; engine-adapters:clan-adapter-enroll #163)" … b76bcc87…, 558441248… (8 failures in 45 min) ``` The gateway stayed on `2026.09.3061` with `2026.09.3119` waiting. Nothing on the panel said updates had stopped. It cleared only when the operator provisioned the device (04:1xZ): the provision deploy wrote `deploy target for node-req-0002 re-captured as root@100.83.156.15` into the config repo. ## Cause - Enrollment admits the node to the inventory without a `deploy.targetHost`. The target is captured only by provisioning's deploy (`internal/provision/deploy.go`, "captured fresh above — ADR 0039"), not at enrollment as the error text claims (#163). - `update/rollout.go:348` seeds **every** inventory node before any deploy and returns on the first seed error. An enrolled-but-unset-up device has no target and no services, and it blocks the whole fleet, the gateway included. A device an operator never sets up would stop the community's updates, security releases included, for as long as it stays that way. ## Fix - The rollout seeds/deploys only nodes that carry work: provisioned nodes, or nodes with a recorded target. A node with no target and no services is skipped with one journal line, never a rollout failure. A provisioned node whose target is missing stays a loud failure for that node only (ADR 0100). It must not fail the gateway's stage. - Either capture the target at enrollment, as the error text and #163 say, or correct the error text to name where the target really comes from. - A failed rollout surfaces on the panel's Updates row, so an operator can see that updates have stopped. - Seam test: gateway + one enrolled, unprovisioned node → the gateway's rollout converges. ## Related Found joining `bens-mac-04`; siblings #2002–#2007, #2011, #2013, #2014.

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

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

close-report for #2017 — status success

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

⚠️ mirror_waiver: No mirrors.tsv trigger touched: the changed files (internal/update/*, internal/clan/supply.go, internal/clan/testing/fake.go, STATUS.md) are not listed as triggers.

⚠️ cross_repo_waiver: No cross-repo-mirrors.tsv trigger touched: the changed files are not the app-door or spaces-door goldens. RolloutView's new seed_failed field is a Go+wire addition with no foreign golden; the dashboard rollout.ts type is an owed same-repo UI follow-up (noted in STATUS), not a foreign copy.

envelope
{
  "issue": 2017,
  "status": "success",
  "commits": [
    "47275d9f02cbe84e87ad65618beea54c3412f8e5"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/clan/supply.go",
    "internal/clan/testing/fake.go",
    "internal/update/rollout.go",
    "internal/update/rollout_skip_test.go",
    "internal/update/rolloutview.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/update/ ./internal/clan/... ./internal/controlapi/ ./internal/provision/",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./internal/update/ ./internal/clan/... && gofmt -l internal/update/ internal/clan/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The rollout seeds/deploys only nodes that carry work; a node with no target and no services is skipped with one journal line, never a rollout failure": "internal/update/rollout.go seed loop parts ErrNoDeployTarget on len(n.Services)==0 → Skipped; test TestRollout_OneGatewayOneTargetlessNode asserts Skipped==1, SeedFailed==0, applied+healthy",
    "A provisioned node whose target is missing stays a loud failure for that node only (ADR 0100); it must not fail the gateway's stage": "internal/update/rollout.go records RolloutResult.SeedFailed []NodeFailure for a services-bearing node, excludes it from reachable; test TestRollout_ProvisionedNodeMissingTarget_LoudFailureNotSkip asserts SeedFailed==1, Skipped==0, gateway applied+healthy and deployed last",
    "Either capture the target at enrollment or correct the error text to name where the target really comes from": "internal/clan/supply.go + fake corrected: text now says the SSH door is captured when a node is PROVISIONED (internal/provision/deploy.go, ADR 0039), not at enrollment (#163)",
    "A failed rollout surfaces on the panel's Updates row so an operator can see updates have stopped": "internal/update/rollout.go fatal seed path now sets res.Fault + retainRollout before returning; test TestRollout_FatalSeedFailure_SurfacesOnPanel asserts RolloutState returns a view with Fault naming the node and Applied false",
    "Seam test: gateway + one enrolled, unprovisioned node → the gateway's rollout converges": "TestRollout_OneGatewayOneTargetlessNode (kauri gateway + tahi unprovisioned/no-services) → res.Applied && res.Healthy, kauri deployed last, tahi skipped"
  },
  "mirror_waiver": "No mirrors.tsv trigger touched: the changed files (internal/update/*, internal/clan/supply.go, internal/clan/testing/fake.go, STATUS.md) are not listed as triggers.",
  "cross_repo_waiver": "No cross-repo-mirrors.tsv trigger touched: the changed files are not the app-door or spaces-door goldens. RolloutView's new seed_failed field is a Go+wire addition with no foreign golden; the dashboard rollout.ts type is an owed same-repo UI follow-up (noted in STATUS), not a foreign copy.",
  "summary": "The rollout parts a benign not-yet-provisioned node (skip) from a provisioned node that lost its target (loud per-node failure), scoped so the gateway still converges; the misleading enrollment error text is corrected and a genuinely-failed rollout now retains a Fault view for the Updates row.",
  "blockers": []
}
**close-report** for #2017 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. > :warning: **mirror_waiver:** No mirrors.tsv trigger touched: the changed files (internal/update/*, internal/clan/supply.go, internal/clan/testing/fake.go, STATUS.md) are not listed as triggers. > :warning: **cross_repo_waiver:** No cross-repo-mirrors.tsv trigger touched: the changed files are not the app-door or spaces-door goldens. RolloutView's new seed_failed field is a Go+wire addition with no foreign golden; the dashboard rollout.ts type is an owed same-repo UI follow-up (noted in STATUS), not a foreign copy. <details><summary>envelope</summary> ```json { "issue": 2017, "status": "success", "commits": [ "47275d9f02cbe84e87ad65618beea54c3412f8e5" ], "changed_files": [ "STATUS.md", "internal/clan/supply.go", "internal/clan/testing/fake.go", "internal/update/rollout.go", "internal/update/rollout_skip_test.go", "internal/update/rolloutview.go" ], "tests": [ { "command": "go test ./internal/update/ ./internal/clan/... ./internal/controlapi/ ./internal/provision/", "exit_code": 0 }, { "command": "go build ./... && go vet ./internal/update/ ./internal/clan/... && gofmt -l internal/update/ internal/clan/", "exit_code": 0 } ], "criteria": { "The rollout seeds/deploys only nodes that carry work; a node with no target and no services is skipped with one journal line, never a rollout failure": "internal/update/rollout.go seed loop parts ErrNoDeployTarget on len(n.Services)==0 → Skipped; test TestRollout_OneGatewayOneTargetlessNode asserts Skipped==1, SeedFailed==0, applied+healthy", "A provisioned node whose target is missing stays a loud failure for that node only (ADR 0100); it must not fail the gateway's stage": "internal/update/rollout.go records RolloutResult.SeedFailed []NodeFailure for a services-bearing node, excludes it from reachable; test TestRollout_ProvisionedNodeMissingTarget_LoudFailureNotSkip asserts SeedFailed==1, Skipped==0, gateway applied+healthy and deployed last", "Either capture the target at enrollment or correct the error text to name where the target really comes from": "internal/clan/supply.go + fake corrected: text now says the SSH door is captured when a node is PROVISIONED (internal/provision/deploy.go, ADR 0039), not at enrollment (#163)", "A failed rollout surfaces on the panel's Updates row so an operator can see updates have stopped": "internal/update/rollout.go fatal seed path now sets res.Fault + retainRollout before returning; test TestRollout_FatalSeedFailure_SurfacesOnPanel asserts RolloutState returns a view with Fault naming the node and Applied false", "Seam test: gateway + one enrolled, unprovisioned node → the gateway's rollout converges": "TestRollout_OneGatewayOneTargetlessNode (kauri gateway + tahi unprovisioned/no-services) → res.Applied && res.Healthy, kauri deployed last, tahi skipped" }, "mirror_waiver": "No mirrors.tsv trigger touched: the changed files (internal/update/*, internal/clan/supply.go, internal/clan/testing/fake.go, STATUS.md) are not listed as triggers.", "cross_repo_waiver": "No cross-repo-mirrors.tsv trigger touched: the changed files are not the app-door or spaces-door goldens. RolloutView's new seed_failed field is a Go+wire addition with no foreign golden; the dashboard rollout.ts type is an owed same-repo UI follow-up (noted in STATUS), not a foreign copy.", "summary": "The rollout parts a benign not-yet-provisioned node (skip) from a provisioned node that lost its target (loud per-node failure), scoped so the gateway still converges; the misleading enrollment error text is corrected and a genuinely-failed rollout now retains a Fault view for the Updates row.", "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#2017
No description provided.