the mesh self-admit oneshot execs the seeded control-plane binary during enroll-activate, before founding has supplied it — every fresh own-VPS founding reds (drive 20260831T042600Z, sig 073c79de3e67) #1056
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
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1056
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?
Failure
Drive
20260831T042600Z(droplet), red atenroll-activate, sig073c79de3e67, commitef5da70d:This is GOTCHAS #126's presentation with a different cause one layer earlier. #126's heal (
mintSelfOncePlaneAnswers, sig25304f657c24) absorbs a plane that is still binding — it cannot absorb this, because the binary that would do the waiting is not on the box.Evidence
The oneshot never ran. It exec'd a file that does not exist — 22 times, 04:31:21 → 04:32:50:
logs/droplet-journal.txt:1259idss-control-plane.servicefails identically on the same missing binary at the same second (logs/droplet-journal.txt:1253, status 127, restart counter climbing in lockstep) — but it isType=simple, so systemd printsStarted…Failed with result 'exit-code'and never the wordsFailed to start. All 22Failed to startlines in the whole journal are the oneshot's. The oneshot isType=oneshot(internal/clan/netbird.go:463), so its identical crash is the only one that prints the phraselogSaysFailedgreps (internal/clan/errors.go:354, marker"failed to") →FailMaskedExit(internal/clan/errors.go:143).Why the binary cannot be there
Founding supplies it strictly after the install legs:
internal/founding/ownvpspath.go:447—installOwnVPS(...)drivesenroll-configure→enroll-build→enroll-copy→enroll-activate.internal/founding/ownvpspath.go:486— only thenguestSupply.Seed(ctx, ip, ownVPSSSHPort), which is what scp's the binary to/srv/idss/bin/control-plane(internal/fleetwire/supply.go:234-243).The takeover wiped the disk (
logs/founding-state.log:install · disko: disko complete), so on a fresh own-VPS founding/srv/idss/bin/control-planecannot exist duringenroll-activate. The unit iswantedBy = [ "multi-user.target" ](internal/clan/netbird.go:458) and execs the seeded binary atinternal/clan/netbird.go:492, so it sits inside the activation job. Not a race — guaranteed, on every fresh own-VPS founding.Rendered on the box as applied:
state/clan-config/machines/gateway/control-plane.nix:531-573(exec at:566).Supply.seed(internal/fleetwire/supply.go:219) copies and returns; it starts nothing. The standing contract is thatRestart=on-failurepicks the binary up once it lands — which works silently foridss-control-planeand loudly, fatally, for the oneshot.Regression window
#964 landed the oneshot with a resting body that exited 0. #998 (
42572400, 2026-08-29 21:30 UTC) un-rested it and made it exec the seeded binary. The last green droplet drive is20260826T203110Zatc45adc47(2026-08-26) — this is the first droplet drive since the un-rest, and it reds at exactly the leg the un-rest put a binary-dependent oneshot into.Suspected layer
The gateway render's unit lifecycle (
internal/clan/netbird.gomeshSelfAdmitOneshot) against the founding install→supply order (internal/founding/ownvpspath.go). Not the masked_exit detector — the detector is right, as it was in #126.What plugging it needs
Explicitly ruled out by the repo's own standing rule (
internal/clan/vmguest.go:411-424): "Do NOT paper it over withSuccessExitStatus=2… or by widening masked_exit'sfailed tomarker."Recommended: take the oneshot out of the activation job and hang it off the binary's arrival. Add
systemd.paths.idss-mesh-self-admitwithwantedBy = [ "multi-user.target" ]andpathConfig.PathExists = "/srv/idss/bin/control-plane", and dropwantedByfrom the service itself (internal/clan/netbird.go:458). Then:enroll-activatethe path unit starts (an inotify watch always succeeds), the oneshot is not in the activation job, nothing printsFailed to start;Supply.seedlands the binary the path unit triggers the oneshot, which then does its ADR 0159 retry-forever with #126's in-process readiness wait — the peer is founded loudly, never silently skipped (ADR 0100), ADR 0214 d.5 intact;PathExistsis already true, so the trigger fires immediately and a reboot still self-admits.Rejected alternatives, to be named if taken instead:
unitConfig.ConditionPathExists— a condition-skipped oneshot withRemainAfterExit = trueis left inactive, and an unchanged later switch does not start it, so the gateway's own peer may never join: a silent success, the ADR 0100 violation, and the loss of thewt0door #854/#1012 need.ownvpspath.go,deploy.goand the clan enrollment phase loop; a bigger, multi-file change.Named residual risk: a path-triggered job is outside
switch-to-configuration's activation job, so its failure no longer makes the switch exit 4 — but if the oneshot is bouncing while a later clan invocation is streaming, its journal lines could still land in that log excerpt and triplogSaysFailed. #126's in-process wait already narrows that to a plane that is genuinely absent; confirm on the drive.Acceptance: a render test in
internal/clan/netbird_test.goasserting the path unit is emitted and the service no longer carrieswantedBy = multi-user.target; the own-VPS gateway eval smoke still evaluates; and the live proof is a droplet drive that passesenroll-activateand whose journal showsthe gateway's own peer joined its mesh plane on wt0after supply.Not self-healed because
The remedy is a unit-lifecycle design choice whose correctness is runtime systemd behaviour, and this box cannot exercise it —
artifacts/host.jsonreportsqemu: exit ENOENT: spawn qemu-system-x86_64 ENOENT, and the only targeted checks available here (go test ./internal/clan) assert rendered text, not whether the gateway's peer actually joins.Absent from the run directory
No
state/logs(logs/state-logs.log: ENOENT).logs/guest-*.logare the local-VM probes and carry nothing for this target.error-context.mdis present atartifacts/journey.droplet-…/error-context.mdand only restates the leg error plus the app's failure frame.drive
20260831T042600Zred atenroll-activate:journey leg "enroll-activate" went red: founding: stand up the server: clan: masked_exit on gateway: clan reported success but the log shows a real failure: [gateway] Aug 31 04:32:50 gateway systemd[1evidence:
/home/dev/swarm/Matou/idss/test-results/drive-droplet/20260831T042600Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=matou-dev-server-01 run=14944
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1056 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope