enroll-activate: idss-mesh-self-admit races netbird-mgmt's :8011 bind, deploy exits 4 #1002
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.
Blocks
Reference
Matou/idss#1002
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?
The failure
legs.json/verdict.jsonput the drive red atstanding(roll-up, 784985 ms), whose error is a pass-through of the leg that actually carried the defect —enroll-activate(247644 ms). 11 legs green, 2 red, 0 skipped:This is not the known frontier. The brief names pairing-never-flips (own-VPS carrier) as the KNOWN red, carried by
legs.jsonskip reasons.verdict.jsonreports"skip": 0andlegs.jsoncontains no skip entries at all — the drive died in founding, upstream of pairing, and never reached it. This red is new and belongs to HEAD:verdict.jsonpins"commit": "4257240…", which is exactly the#998commit that un-restedidss-mesh-self-admitso the gateway joins its own mesh plane at deploy.The evidence
idss-mesh-self-admitfires the instant the control plane is up, and the Netbird management API it must call is not yet listening (logs/gateway-journal.txt:1634,:1671):systemd considers
netbird-mgmtstarted at 21:54:13, but the process only binds :8011 fifteen seconds later, after SQLite migrations and two geolocation-database downloads (gateway-journal.txt:1333,:1731,:1782,:1844,:1858):The self-admit unit burns its whole restart budget inside that window — identical ECONNREFUSED at 21:54:15.000, 21:54:20.182, 21:54:25.411, then once more when
switch-to-configurationre-triggers it ("Scheduled restart job immediately on client request",:1819) at 21:54:27.937. That last attempt missed the listener by 243 ms. The switch gives up on the next line pair (gateway-journal.txt:1859-1861):Five seconds after the deploy was already declared failed, the next scheduled restart succeeds against the now-listening API (
:1873-1925):The forensics snapshot taken at 21:54:45 confirms the box converged on its own —
logs/gateway-units.txtshows=== systemctl --failed ===with no failed units, and:8011healthy:LISTEN 0 4096 *:8011 users:(("netbird-mgmt",pid=2327,fd=11)). So the machine is fine; the deploy is what failed, because a unit that self-heals on its next restart still counts as a failed unit toswitch-to-configuration, which exits 4.clanthen exited 0 over the top of that — the harness'smasked_exitdetector is correct here, not over-firing.Suspected layer
Product / infra — the
idss-mesh-self-admit.serviceunit definition landed by #998. It is orderedAfter=the Netbird management unit, butnetbird-mgmtreaches "started" ~15 s before it reaches "serving". Ordering-on-unit-start is not a readiness gate against a daemon with a long, network-dependent warm-up (the GeoLite2/geonames fetch), so the retry budget (3 × ~5 s ≈ 15 s) is a coin-flip against it. Not a harness bug: the masked_exit scan reported a genuinestatus 4switch failure thatclanswallowed.Secondary, worth noting but not the cause:
netbird-mgmt[2327]: listen tcp 127.0.0.1:6060: bind: address already in use(:1360) —netbird-signalalready holds :6060 (ssconfirmsnetbird-signal,pid=2224,fd=8). Non-fatal (pprof port) but it is a real port collision between the two units.What plugging it needs
idss-mesh-self-admita real readiness precondition on the management API rather than on the unit: anExecStartPrethat pollshttp://localhost:8011/api/groups(or a plain TCP wait on :8011) until it answers, with a bounded deadline comfortably past the geolocation warm-up — 90–120 s, not 15.RestartSec/StartLimitBurst) so it cannot exhaust inside a first-boot warm-up — but this only shrinks the race window; (1) or (2) closes it.A useful ratchet alongside the fix: the masked_exit scan cannot distinguish a unit that failed-then-converged from one that stayed down, so it will keep reporting whichever
Failed to startline it sees first. Correlating eachFailed to start Xagainst a laterFinished Xbefore calling it a real failure would keep this class of red honest — though in this run it would not have changed the verdict, sinceswitch-to-configurationitself exited 4.What is absent
gateway-units.txtalready carries the post-hocsystemctl --failedandss -tlnpthat a live box would have been asked for.logs/droplet-journal.txtas named in the brief does not exist; the harvest instead carries per-rolegateway-journal.txt(335 KB) anddevice-journal.txt(150 KB).logs/broker-journal.txtharvested nothing —dev@100.98.48.68: Permission denied (publickey), with its own note that an off-mesh executor harvests no broker journal by design (ADR 0208, #681); the verdict does not depend on it.logs/state-logs.logis an ENOENT againsttest-results/standing-rented/state/logs— a stale path, unrelated to this red.guest-*.logfiles are the same 129-byte stub; there is no guest VM in this drive (host.jsonrecordsqemu: exit ENOENT: spawn qemu-system-x86_64 ENOENT).drive
20260829T213942Zred atenroll-activate:journey leg "enroll-activate" went red: founding: stand up the rented server: clan: masked_exit on gateway: clan reported success but the log shows a real failure: [gateway] Aug 29 21:54:20 idss-gatewevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260829T213942Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedClosing as already fixed (ADR 0174, session hands). This is the same fault the rehearsal healer fixed on this very drive's red: commit
9ef8509af35476d35b1808bf52063faa95fc0045(landed on main before this ticket was filed). The self-admit now waits for the plane to answer inside its attempt (2 s polls within a 120 s budget) instead of dying on the first refused dial —after=start-vs-readiness recorded as GOTCHAS #126, red-first tests included.The reporter and healer double-filed the same signature; this ticket blocking #854 would park the drive on a defect that no longer exists. #854 re-fires on the next fresh-pin tick.