updates: a member node's failed deploy + unimplemented rollback fails EVERY rollout — the gateway lands, restarts the bridge, then restores itself, every 5 min; the fix for the member can never arrive #2027

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

Symptom

Whakatōhea Demo has not taken a single release since 06:31Z on 2026-09-30. Every 5 minutes, 18 times in 90 minutes, the rollout:

  1. lands the new fleet software on the gateway, restarts the idss-idp bridge onto it ("bridge changed — restarting idss-idp … self-testing (#1689)"),
  2. deploys the member node node-req-0003 (bens-mac-04's VM guest, Backup copy placed), which fails because the guest has no machine config (#2024; the fix is in the release being applied),
  3. tries to roll node-req-0003 back and cannot:
update rollout failed revision=e18649f7… err="update: rollback node-req-0003: clan: the generation rollback scope runs over the node's established SSH connection and needs the per-operation target resolver (ADR 0039) — it lands with engine-adapters:clan-adapter-enroll (#163); the revision scope is the core path"
  1. restores the gateway's previous software and restarts again.

The gateway stays on 2026.09.3124 with 3131 "automatic". The releases that would fix the member node (#2024 in 3130+) can never land, because the broken member blocks them. Every tick also restarts the sign-in bridge twice.

Cause

  • A member node's failed deploy fails the whole rollout, gateway included. #2016/#2017 skip only a node that was never provisioned. This one is provisioned (it carries a service marker), so it is deployed and its failure counts.
  • The member's rollback mechanic (generation scope) is unimplemented (#163), so the rollback itself fails and turns a member-only fault into a fleet-wide one.
  • Landing the gateway first and then restoring it restarts idss-idp on every tick. On a community with members signing in, that is a sign-in blip every 5 minutes.

Fix

  • A member node's deploy or rollback failure is that node's outcome: it is quarantined or marked failed on its own row, and the gateway's stage stands. Never roll the gateway back for a member's fault.
  • A rollback scope that is not implemented is a quarantine of that node with a clear reason, never a rollout failure.
  • Gateway landing and bridge restart happen once per applied release, not on every retry of a failing one.
  • Seam test: gateway + a provisioned member whose deploy fails → the gateway converges on the new release, the member is quarantined, and idss-idp restarts once.

Unblocking the demo by hand

Remove machines/node-req-0003/backup-copy.nix from /srv/idss/config so the node is unprovisioned again; the #2017 skip then lets the rollout through.

#2024, #2023, #2017, #2016, #163, #1689.

## Symptom Whakatōhea Demo has **not taken a single release since 06:31Z on 2026-09-30**. Every 5 minutes, 18 times in 90 minutes, the rollout: 1. lands the new fleet software on the gateway, **restarts the `idss-idp` bridge** onto it ("bridge changed — restarting idss-idp … self-testing (#1689)"), 2. deploys the member node `node-req-0003` (bens-mac-04's VM guest, Backup copy placed), which fails because the guest has no machine config (#2024; the fix is in the release being applied), 3. tries to roll `node-req-0003` back and **cannot**: ``` update rollout failed revision=e18649f7… err="update: rollback node-req-0003: clan: the generation rollback scope runs over the node's established SSH connection and needs the per-operation target resolver (ADR 0039) — it lands with engine-adapters:clan-adapter-enroll (#163); the revision scope is the core path" ``` 4. restores the gateway's previous software and restarts again. The gateway stays on `2026.09.3124` with `3131` "automatic". The releases that would fix the member node (#2024 in `3130`+) can never land, because the broken member blocks them. Every tick also restarts the sign-in bridge twice. ## Cause - A member node's failed deploy fails the whole rollout, gateway included. #2016/#2017 skip only a node that was never provisioned. This one is provisioned (it carries a service marker), so it is deployed and its failure counts. - The member's rollback mechanic (generation scope) is unimplemented (#163), so the rollback itself fails and turns a member-only fault into a fleet-wide one. - Landing the gateway first and then restoring it restarts `idss-idp` on every tick. On a community with members signing in, that is a sign-in blip every 5 minutes. ## Fix - A member node's deploy or rollback failure is that node's outcome: it is quarantined or marked failed on its own row, and the gateway's stage stands. Never roll the gateway back for a member's fault. - A rollback scope that is not implemented is a quarantine of that node with a clear reason, never a rollout failure. - Gateway landing and bridge restart happen once per applied release, not on every retry of a failing one. - Seam test: gateway + a provisioned member whose deploy fails → the gateway converges on the new release, the member is quarantined, and `idss-idp` restarts once. ## Unblocking the demo by hand Remove `machines/node-req-0003/backup-copy.nix` from `/srv/idss/config` so the node is unprovisioned again; the #2017 skip then lets the rollout through. ## Related #2024, #2023, #2017, #2016, #163, #1689.

swarm-claim host=bens-mac-04 run=36412
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=36412 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #2027 — status success

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

envelope
{
  "issue": 2027,
  "status": "success",
  "commits": [
    "c8c657d616eddef5df5adc1b6f431b90bfd63f07"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/update/rollout.go",
    "internal/update/rollout_member_bridge_test.go"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/update/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/update/",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/fleetland/ ./internal/controlapi/",
      "exit_code": 0
    },
    {
      "command": "go test ./control-plane/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "A member node's deploy/rollback failure is that node's outcome (marked failed on its own row), the gateway's stage stands, and the gateway is never rolled back for a member's fault": "internal/update/rollout.go deployMembers -> RolloutResult.DeployFailed (node-scoped, incl. the new eval-preflight-exclusion case); TestRollout_MemberFailure_GatewayConvergesBridgeRestartsOnce (gateway applies, member named, cl.Rollbacks()==0, no restore) and TestRollout_MemberExcludedAtEvalPreflight_NamedNotConverged in internal/update/rollout_member_bridge_test.go",
    "A rollback scope that is not implemented is a quarantine of that node with a clear reason, never a rollout failure": "pre-existing from #2025 in internal/update/rollback.go (RollbackFailed names the node, undo carries on), covered by the existing TestRollback_UnrunnableNodeRollbackNamedNotFatal; unchanged by this ticket",
    "Gateway landing and bridge restart happen once per applied release, not on every retry of a failing one": "TestRollout_MemberFailure_GatewayConvergesBridgeRestartsOnce asserts guard.restartChanged==1 on the pre-swap pass and guard2.restartChanged==0 across the Resume self-swap (idss-idp bounced exactly once), with no re-land",
    "Seam test: gateway + a provisioned member whose deploy fails -> the gateway converges on the new release, the member is quarantined/named, and idss-idp restarts once": "internal/update/rollout_member_bridge_test.go: both new seam tests (self-swap+Resume convergence with one bridge restart, and the eval-excluded member named node-scoped not converged)"
  },
  "summary": "An eval-preflight-excluded member is now named node-scoped (RolloutResult.DeployFailed), not silently counted converged; the Whakatohea demo loop is pinned end to end at the internal/update seam.",
  "blockers": []
}
**close-report** for #2027 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 2027, "status": "success", "commits": [ "c8c657d616eddef5df5adc1b6f431b90bfd63f07" ], "changed_files": [ "STATUS.md", "internal/update/rollout.go", "internal/update/rollout_member_bridge_test.go" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go vet ./internal/update/", "exit_code": 0 }, { "command": "go test ./internal/update/", "exit_code": 0 }, { "command": "go test ./internal/fleetland/ ./internal/controlapi/", "exit_code": 0 }, { "command": "go test ./control-plane/...", "exit_code": 0 } ], "criteria": { "A member node's deploy/rollback failure is that node's outcome (marked failed on its own row), the gateway's stage stands, and the gateway is never rolled back for a member's fault": "internal/update/rollout.go deployMembers -> RolloutResult.DeployFailed (node-scoped, incl. the new eval-preflight-exclusion case); TestRollout_MemberFailure_GatewayConvergesBridgeRestartsOnce (gateway applies, member named, cl.Rollbacks()==0, no restore) and TestRollout_MemberExcludedAtEvalPreflight_NamedNotConverged in internal/update/rollout_member_bridge_test.go", "A rollback scope that is not implemented is a quarantine of that node with a clear reason, never a rollout failure": "pre-existing from #2025 in internal/update/rollback.go (RollbackFailed names the node, undo carries on), covered by the existing TestRollback_UnrunnableNodeRollbackNamedNotFatal; unchanged by this ticket", "Gateway landing and bridge restart happen once per applied release, not on every retry of a failing one": "TestRollout_MemberFailure_GatewayConvergesBridgeRestartsOnce asserts guard.restartChanged==1 on the pre-swap pass and guard2.restartChanged==0 across the Resume self-swap (idss-idp bounced exactly once), with no re-land", "Seam test: gateway + a provisioned member whose deploy fails -> the gateway converges on the new release, the member is quarantined/named, and idss-idp restarts once": "internal/update/rollout_member_bridge_test.go: both new seam tests (self-swap+Resume convergence with one bridge restart, and the eval-excluded member named node-scoped not converged)" }, "summary": "An eval-preflight-excluded member is now named node-scoped (RolloutResult.DeployFailed), not silently counted converged; the Whakatohea demo loop is pinned end to end at the internal/update seam.", "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#2027
No description provided.