founding: the deploy leg reds on a transient activation failure the guest self-heals from (VM sibling of #462) #476

Closed
opened 2026-08-12 17:52:37 +00:00 by ben · 1 comment
Owner

Filed from Ben's 2026-08-12 manual fresh-install trial (full Tier 1+2 reset: cold /nix, wiped community env, private path, tree at 35b387b).

What happened

The stand-up's gateway deploy pushed the closure and ran activation on the guest. The guest journal shows:

  • 17:26:11 — nixos[1127]: switching to system configuration /nix/store/y0cp855...-nixos-system-gateway-... failed (status 4) (first switch attempt; accompanied by Reload failed for D-Bus User/System Message Bus)
  • 17:26:20 — nixos[1697]: finished switching to system configuration /nix/store/y0cp855... (second attempt SUCCEEDED); clan-switch-gateway-dad0a201.service: Deactivated successfully
  • 17:26:44 — one sshd: error: PAM: Authentication failure for root from 10.0.2.2 (a post-deploy probe?); the same guest-trust key door worked fine seconds later and thereafter

End state on the guest: zero failed units, ourcloud-control-plane and kanidm active, running exactly the deployed closure — yet the app declared "The gateway deploy failed" and offered VM deletion.

Why it matters

This is #462's defect class on the private path: a deploy hard-fails on a transient the system self-heals from, and here it pushed the operator toward destroying a healthy gateway. #462's fix keyed the own-VPS probe on UnitActive; the VM path's verification needs the same tolerance.

Definition of done

  • The deploy verification treats a transient first-switch red (or a single probe/auth blip) as retryable: re-probe before declaring failure (bounded retries, e.g. the #422/ADR 0161 5-minute re-run family).
  • Given the sequence above (failed switch → finished switch → units active), the deploy leg reports GREEN.
  • A seam/unit test pins the retry (fake probe: first attempt fails, second succeeds → deploy green; persistent failure → honest red).
Filed from Ben's 2026-08-12 manual fresh-install trial (full Tier 1+2 reset: cold /nix, wiped community env, private path, tree at 35b387b). ## What happened The stand-up's gateway deploy pushed the closure and ran activation on the guest. The guest journal shows: - 17:26:11 — `nixos[1127]: switching to system configuration /nix/store/y0cp855...-nixos-system-gateway-... failed (status 4)` (first switch attempt; accompanied by `Reload failed for D-Bus User/System Message Bus`) - 17:26:20 — `nixos[1697]: finished switching to system configuration /nix/store/y0cp855...` (second attempt SUCCEEDED); `clan-switch-gateway-dad0a201.service: Deactivated successfully` - 17:26:44 — one `sshd: error: PAM: Authentication failure for root from 10.0.2.2` (a post-deploy probe?); the same guest-trust key door worked fine seconds later and thereafter End state on the guest: **zero failed units, ourcloud-control-plane and kanidm active, running exactly the deployed closure** — yet the app declared "The gateway deploy failed" and offered VM deletion. ## Why it matters This is #462's defect class on the private path: a deploy hard-fails on a transient the system self-heals from, and here it pushed the operator toward destroying a healthy gateway. #462's fix keyed the own-VPS probe on UnitActive; the VM path's verification needs the same tolerance. ## Definition of done - The deploy verification treats a transient first-switch red (or a single probe/auth blip) as retryable: re-probe before declaring failure (bounded retries, e.g. the #422/ADR 0161 5-minute re-run family). - Given the sequence above (failed switch → finished switch → units active), the deploy leg reports GREEN. - A seam/unit test pins the retry (fake probe: first attempt fails, second succeeds → deploy green; persistent failure → honest red).
Author
Owner

close-report for #476 — status success

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

envelope
{
  "issue": 476,
  "status": "success",
  "commits": [
    "3821a7f6b9dd64150f1e343bcc3174fd555a997c"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/clan/testing/fake.go",
    "internal/founding/deploy.go",
    "internal/founding/deploy_test.go",
    "internal/founding/export_test.go",
    "internal/founding/orchestrator.go"
  ],
  "tests": [
    {
      "command": "go build ./...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/founding/... ./internal/clan/...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/founding/... ./internal/clan/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The deploy verification treats a transient first-switch red (or a single probe/auth blip) as retryable: re-probe before declaring failure (bounded retries, e.g. the #422/ADR 0161 5-minute re-run family)": "internal/founding/deploy.go probeControlPlaneActive re-probes UnitActive up to probeAttempts (New-default 6) times with probeDelay (15s) between tries via sleepCtx, retrying on both an inactive result and a transport error, before the single UnitActive gate declares the red",
    "Given the sequence above (failed switch -> finished switch -> units active), the deploy leg reports GREEN": "TestDeploy_RetriesTheLivenessProbeThroughATransientBlip: clan fake UnitInactiveUntil=1 (first probe inactive, then active) -> ds.Outcome==DeployLive, Failure==nil, >=2 probes, non-empty ControlPlane",
    "A seam/unit test pins the retry (fake probe: first attempt fails, second succeeds -> deploy green; persistent failure -> honest red)": "TestDeploy_RetriesTheLivenessProbeThroughATransientBlip pins first-fails->second-succeeds->green (proven load-bearing: fails with attempts=1); TestDeploy_PersistentInactiveStillRedsAfterTheBoundedRetry pins UnitInactive=true -> DeployFailed after the bounded retry"
  },
  "summary": "The founding gateway deploy re-probes the control-plane unit across a bounded window before declaring failure, so a self-healed first switch or a single auth blip no longer reds a live VM gateway.",
  "blockers": []
}
**close-report** for #476 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 476, "status": "success", "commits": [ "3821a7f6b9dd64150f1e343bcc3174fd555a997c" ], "changed_files": [ "STATUS.md", "internal/clan/testing/fake.go", "internal/founding/deploy.go", "internal/founding/deploy_test.go", "internal/founding/export_test.go", "internal/founding/orchestrator.go" ], "tests": [ { "command": "go build ./...", "exit_code": 0 }, { "command": "go test ./internal/...", "exit_code": 0 }, { "command": "go vet ./internal/founding/... ./internal/clan/...", "exit_code": 0 }, { "command": "golangci-lint run ./internal/founding/... ./internal/clan/...", "exit_code": 0 } ], "criteria": { "The deploy verification treats a transient first-switch red (or a single probe/auth blip) as retryable: re-probe before declaring failure (bounded retries, e.g. the #422/ADR 0161 5-minute re-run family)": "internal/founding/deploy.go probeControlPlaneActive re-probes UnitActive up to probeAttempts (New-default 6) times with probeDelay (15s) between tries via sleepCtx, retrying on both an inactive result and a transport error, before the single UnitActive gate declares the red", "Given the sequence above (failed switch -> finished switch -> units active), the deploy leg reports GREEN": "TestDeploy_RetriesTheLivenessProbeThroughATransientBlip: clan fake UnitInactiveUntil=1 (first probe inactive, then active) -> ds.Outcome==DeployLive, Failure==nil, >=2 probes, non-empty ControlPlane", "A seam/unit test pins the retry (fake probe: first attempt fails, second succeeds -> deploy green; persistent failure -> honest red)": "TestDeploy_RetriesTheLivenessProbeThroughATransientBlip pins first-fails->second-succeeds->green (proven load-bearing: fails with attempts=1); TestDeploy_PersistentInactiveStillRedsAfterTheBoundedRetry pins UnitInactive=true -> DeployFailed after the bounded retry" }, "summary": "The founding gateway deploy re-probes the control-plane unit across a bounded window before declaring failure, so a self-healed first switch or a single auth blip no longer reds a live VM gateway.", "blockers": [] } ``` </details>
ben closed this issue 2026-08-12 20:11:53 +00:00
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
Matou/idss#476
No description provided.