deploy-files: the switch STOPS idss-control-plane and it never starts again — post-deploy box headless (not #835's 502 blip) #841
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#841
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Filed from the #722 watch (reporter token-limited, fourth time). Drive
20260825T164507Z(droplet regression, 18/19 green) reddeploy-filesagain — 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:44control-plane healthy ("serving the OpenAPI API", heartbeat re-pointed the record).16:55:55systemd:Stopping idss-control-plane.service… Stopped— the files-deploy switch. Unit stats at stop: 2.1G memory peak, 1.7G written (mid-work).Started idss-control-planeever follows in the captured journal, and caddy logs 70×dial tcp 127.0.0.1:8080: connection refusedthrough the rest of the drive.Candidate causes (undischarged)
idss-control-plane.service— plausible given the large observability-arc landings on main these same hours touching gateway service composition.Armed for the next occurrence
REHEARSAL_KEEP_RED_DROPLET=1is now exported on matou-workstation'sidss-env.sh— the next red keeps its box;systemctl list-units | grep idss+journalctl -u idss-control-planeon 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
mainas805dd67:internal/clan/gateway_attach_test.go :: TestOwnVPSGateway_FilesCohostKeepsControlPlaneUnitdrives the exact production sequence ofprovision.attachFilesCohost's public path end to end over a real config repo:…and diffs the control-plane unit against pre-deploy. It passes: after the switch the unit survives in
systemd.services.idss-control-planeis not renamed; andcontrol-plane.nixstill declares it (with itsexec /srv/idss/bin/control-planestart half) andconfiguration.nixstill imports./control-plane.nix. (presentModulesimports 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/clangateway composition since #778 (08:23Z) / #790 (07:14Z). Every landing between then and the 16:45 drive was dashboard-only (observability:*+ #835'sprovisionClient.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:
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=1is 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.
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=1is 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 andsystemctl list-units | grep idss+journalctl -u idss-control-plane -bdiscriminate 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: 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-*.serviceexit 101, aswitch-to-configuration-ngpanic) between its stop and start phases, because the deploy runner ISidss-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: droplet595145088,root@170.64.198.223.deploy-files' switch stopsidss-control-plane, whose cgroup holds theclanCLI, andswitch-to-configurationdies at 101 before it ever restarts anything #858