deploy-files: the switch STOPS idss-control-plane and it never starts again — post-deploy box headless (not #835's 502 blip) #841

Closed
opened 2026-08-25 17:00:52 +00:00 by ben · 3 comments
Owner

Filed from the #722 watch (reporter token-limited, fourth time). Drive 20260825T164507Z (droplet regression, 18/19 green) red deploy-files again — but this is NOT #835's blip case, and #835's fix (landed 16:43, drive 16:45) rightly conceded: the control plane died at the deploy's switch and never came back.

Evidence (test-results/drive-droplet/20260825T164507Z/)

  • 16:53:44 control-plane healthy ("serving the OpenAPI API", heartbeat re-pointed the record).
  • 16:55:55 systemd: Stopping idss-control-plane.service… Stopped — the files-deploy switch. Unit stats at stop: 2.1G memory peak, 1.7G written (mid-work).
  • No Started idss-control-plane ever follows in the captured journal, and caddy logs 70× dial tcp 127.0.0.1:8080: connection refused through the rest of the drive.
  • The box is already unreachable (torn down), so unit-present-but-stopped vs unit-gone could not be probed live.

Candidate causes (undischarged)

  1. The new files closure drops or renames idss-control-plane.service — plausible given the large observability-arc landings on main these same hours touching gateway service composition.
  2. switch-to-configuration stops the unit and the start half never runs (ordering/hang — the #62/#68 family, but server-side).
  3. The unit start fails instantly under the new closure (bad path/flag) — though no failure lines appear after the stop.

Armed for the next occurrence

REHEARSAL_KEEP_RED_DROPLET=1 is now exported on matou-workstation's idss-env.sh — the next red keeps its box; systemctl list-units | grep idss + journalctl -u idss-control-plane on the live box discriminates the three in one minute. Reproducing locally: build the co-host closure for a droplet-shaped gateway and diff its unit set against pre-deploy.

Blocks #722 (attached).

Filed from the #722 watch (reporter token-limited, fourth time). Drive `20260825T164507Z` (droplet regression, 18/19 green) red `deploy-files` again — but this is NOT #835's blip case, and #835's fix (landed 16:43, drive 16:45) rightly conceded: the control plane **died at the deploy's switch and never came back**. ## Evidence (`test-results/drive-droplet/20260825T164507Z/`) - `16:53:44` control-plane healthy ("serving the OpenAPI API", heartbeat re-pointed the record). - `16:55:55` systemd: `Stopping idss-control-plane.service… Stopped` — the files-deploy switch. Unit stats at stop: **2.1G memory peak, 1.7G written** (mid-work). - **No `Started idss-control-plane` ever follows** in the captured journal, and caddy logs **70×** `dial tcp 127.0.0.1:8080: connection refused` through the rest of the drive. - The box is already unreachable (torn down), so unit-present-but-stopped vs unit-gone could not be probed live. ## Candidate causes (undischarged) 1. The new files closure **drops or renames `idss-control-plane.service`** — plausible given the large observability-arc landings on main these same hours touching gateway service composition. 2. switch-to-configuration stops the unit and the **start half never runs** (ordering/hang — the #62/#68 family, but server-side). 3. The unit start fails instantly under the new closure (bad path/flag) — though no failure lines appear after the stop. ## Armed for the next occurrence `REHEARSAL_KEEP_RED_DROPLET=1` is now exported on matou-workstation's `idss-env.sh` — the next red keeps its box; `systemctl list-units | grep idss` + `journalctl -u idss-control-plane` on the live box discriminates the three in one minute. Reproducing locally: build the co-host closure for a droplet-shaped gateway and diff its unit set against pre-deploy. Blocks #722 (attached).

Candidate 1 DISCHARGED locally — the files closure does not drop or rename the unit

Reproduced the files-deploy switch's closure at the Go seam (no live box needed — the only closure the files deploy composes is the co-host re-render). Landed on main as 805dd67:

internal/clan/gateway_attach_test.go :: TestOwnVPSGateway_FilesCohostKeepsControlPlaneUnit drives the exact production sequence of provision.attachFilesCohost's public path end to end over a real config repo:

AttachFiles → AttachFrontDoor → EnableGatewayNextcloudExport → ComposeGatewayCohost

…and diffs the control-plane unit against pre-deploy. It passes: after the switch the unit survives in

  • name — systemd.services.idss-control-plane is not renamed; and
  • presence — control-plane.nix still declares it (with its exec /srv/idss/bin/control-plane start half) and configuration.nix still imports ./control-plane.nix. (presentModules imports only files on disk, so a recompose that dropped the import would leave the unit dead text with no eval error — exactly candidate 1's signature. It doesn't.)

The prior autopsy (TestOwnVPSGateway_FullInstallClosureAudit) pinned only the founding-time assembly; nothing pinned the unit set after the files switch — the very moment the drive went red. That gap is now guarded.

Corroboration — the closure is byte-stable from prior green drives

No commit has touched internal/clan gateway composition since #778 (08:23Z) / #790 (07:14Z). Every landing between then and the 16:45 drive was dashboard-only (observability:* + #835's provisionClient.ts) — none touch gateway service composition. So candidate 1's premise ("large observability-arc landings … touching gateway service composition") is false: the files closure this drive built is the same one earlier drives switched into green. (#778 is the IDIP branch — a no-op on the kanidm public-gateway path anyway.)

Remaining — candidates 2 & 3 are server-side, need the kept-red droplet

With candidate 1 out, the headless box is a server-side switch behaviour:

  1. switch-to-configuration stops the unit and the start half never runs (ordering/hang), or
  2. the unit start fails instantly under the new closure.

These are only discriminable on a live box (systemctl list-units | grep idss + journalctl -u idss-control-plane), which the #841 drive's box no longer is (torn down). REHEARSAL_KEEP_RED_DROPLET=1 is already armed on matou-workstation for the next occurrence — that is what re-arms this ticket.

Marking agent-blocked: the local half is done and guarded; the remaining root-cause discrimination requires driving the armed live droplet, which this sandbox cannot do.

## Candidate 1 DISCHARGED locally — the files closure does not drop or rename the unit Reproduced the files-deploy switch's closure at the Go seam (no live box needed — the only closure the files deploy composes is the co-host re-render). Landed on `main` as **805dd67**: `internal/clan/gateway_attach_test.go :: TestOwnVPSGateway_FilesCohostKeepsControlPlaneUnit` drives the **exact production sequence** of `provision.attachFilesCohost`'s public path end to end over a real config repo: AttachFiles → AttachFrontDoor → EnableGatewayNextcloudExport → ComposeGatewayCohost …and diffs the control-plane unit against pre-deploy. It **passes**: after the switch the unit survives in - **name** — `systemd.services.idss-control-plane` is not renamed; and - **presence** — `control-plane.nix` still declares it (with its `exec /srv/idss/bin/control-plane` start half) **and** `configuration.nix` still imports `./control-plane.nix`. (`presentModules` imports only files on disk, so a recompose that dropped the import would leave the unit dead text with **no** eval error — exactly candidate 1's signature. It doesn't.) The prior autopsy (`TestOwnVPSGateway_FullInstallClosureAudit`) pinned only the **founding-time** assembly; nothing pinned the unit set **after** the files switch — the very moment the drive went red. That gap is now guarded. ### Corroboration — the closure is byte-stable from prior green drives No commit has touched `internal/clan` gateway composition since **#778 (08:23Z)** / **#790 (07:14Z)**. Every landing between then and the 16:45 drive was **dashboard-only** (`observability:*` + #835's `provisionClient.ts`) — none touch gateway service composition. So candidate 1's premise ("large observability-arc landings … touching gateway service composition") is **false**: the files closure this drive built is the same one earlier drives switched into green. (#778 is the IDIP branch — a no-op on the kanidm public-gateway path anyway.) ## Remaining — candidates 2 & 3 are server-side, need the kept-red droplet With candidate 1 out, the headless box is a **server-side switch behaviour**: 2. switch-to-configuration stops the unit and the **start half never runs** (ordering/hang), or 3. the unit start **fails instantly** under the new closure. These are only discriminable on a live box (`systemctl list-units | grep idss` + `journalctl -u idss-control-plane`), which the #841 drive's box no longer is (torn down). `REHEARSAL_KEEP_RED_DROPLET=1` is already armed on matou-workstation for the next occurrence — that is what re-arms this ticket. Marking **agent-blocked**: the local half is done and guarded; the remaining root-cause discrimination requires driving the armed live droplet, which this sandbox cannot do.
Author
Owner

Ruled by agent under ADR 0174 (the watch's hands) — veto anytime: #841 no longer blocks #722. Candidates 2/3 need a live red box, and the only machine that can mint one is the drive this ticket was blocking — a circle. REHEARSAL_KEEP_RED_DROPLET=1 is armed on matou-workstation, so the next #722 drive IS the diagnostic: green → the 164507Z death was a one-off to note here and close; red → its box survives and systemctl list-units | grep idss + journalctl -u idss-control-plane -b discriminate candidates 2/3 in one minute. This ticket stays open as the investigation home either way.

**Ruled by agent under ADR 0174 (the watch's hands) — veto anytime: #841 no longer blocks #722.** Candidates 2/3 need a live red box, and the only machine that can mint one is the drive this ticket was blocking — a circle. `REHEARSAL_KEEP_RED_DROPLET=1` is armed on matou-workstation, so the next #722 drive IS the diagnostic: green → the 164507Z death was a one-off to note here and close; red → its box survives and `systemctl list-units | grep idss` + `journalctl -u idss-control-plane -b` discriminate candidates 2/3 in one minute. This ticket stays open as the investigation home either way.
Author
Owner

Ruled by agent under ADR 0174 (the watch's hands) — veto anytime: closed in favour of #858. The keep-on-red diagnostic drive (20260825T212849Z) settled the open candidates: neither "start-half never runs" nor "instant start-fail" as a control-plane defect — the switch itself dies (clan-switch-gateway-*.service exit 101, a switch-to-configuration-ng panic) between its stop and start phases, because the deploy runner IS idss-control-plane.service: stopping the unit cgroup-kills the clan CLI + loopback ssh driving the switch. Full three-for-three evidence and the suspected-layer walk live on #858 (which now blocks #722). The red box is KEPT for the fixing session: droplet 595145088, root@170.64.198.223.

**Ruled by agent under ADR 0174 (the watch's hands) — veto anytime: closed in favour of #858.** The keep-on-red diagnostic drive (`20260825T212849Z`) settled the open candidates: neither "start-half never runs" nor "instant start-fail" as a control-plane defect — the **switch itself dies** (`clan-switch-gateway-*.service` exit 101, a `switch-to-configuration-ng` panic) between its stop and start phases, because the deploy runner IS `idss-control-plane.service`: stopping the unit cgroup-kills the clan CLI + loopback ssh driving the switch. Full three-for-three evidence and the suspected-layer walk live on #858 (which now blocks #722). The red box is KEPT for the fixing session: droplet `595145088`, `root@170.64.198.223`.
ben closed this issue 2026-08-25 21:53:16 +00:00
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#841
No description provided.