consent: join dies on update-ca-certificates exit 10 — a cloud-init dpkg race #1033
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#1033
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?
What failed
Leg
consent.verdict.jsongives"firstRedLeg": "consent",{"total": 6, "green": 5, "red": 1, "skip": 0}.This is not the KNOWN own-VPS carrier frontier. That frontier is pairing, and
legs.jsoncarries no skip reasons at all ("skip": 0) — the drive died four legs upstream of it, atconsent, on a defect this drive has not seen before.Consent itself worked. The transcript records the whole consent contract completing:
and the operator app agreed — the Playwright page snapshot in
error-context.mdshows✓ node-req-0001 connected. 2 vCPU · 4 GB · 76 GB — meets the gateway minimum.The join then aborted in a step after consent.The failing line
From
artifacts/legs.json/artifacts/consent-transcript.txt:exit status 10is not a failure code — it is a count.openssl rehash(whichupdate-ca-certificatesshells out to) exits with the number of files it could not process. There are exactly 10error: … cannot open filelines. The twowarning:lines are not counted. Soexit 10means, literally, "ten dangling symlinks in/etc/ssl/certs" — nothing about the IDSS cert.Who made those ten links dangle
logs/droplet-journal.txtnames it. cloud-init was still running, and was mid-dpkgonca-certificates, at the exact second the agent refreshed the trust store:The
Unpacking … over (20240203)at 12:18:02 removed the old source PEMs out from under the/etc/ssl/certssymlinks. One second later the agent rehashed that half-torn directory and hit the dangling links. Then cloud-init's ownupdate-ca-certificatescleaned up:14 added, 10 removed— the same ten.Two further facts from those lines settle the diagnosis:
12:18:11the store is clean:0 added, 0 removed; done.A retry three seconds later would have passed.idss-community.pemsitting in/etc/ssl/certs. The work succeeded; only the exit code of the refresh killed the join.Suspected layer
Product (primary) —
idss-agent'sjoin: install certsstep. It treats any non-zero exit fromupdate-ca-certificatesas fatal to enrolment. But that exit code is a per-file error count for pre-existing, third-party, unrelated entries in/etc/ssl/certs— entries IDSS did not write and is not responsible for. Any member machine whoseunattended-upgrades,apt, or cloud-init happens to touchca-certificatesduring a join gets a hard "enroll did not complete", on a box where the community cert is in fact correctly installed. This is not rehearsal-only.Harness (contributor). The drive drives
curl -sSf https://get.idss.nz | shand the terminal join at ~25 s after boot, inside cloud-init's window —cloud-final.servicedid not finish until12:18:36, 38 s afteridss-agent.servicestarted. The rehearsal reliably reproduces a race it should be gating out.Infra: not implicated.
logs/droplet-do-forensics.txtshows onecreateaction and nothing else (a power_cycle/resize/migration here is DO's doing— there is none), 0% packet loss, and the box answering on tcp/22.What plugging it needs
trust: refresh system trust storepath, stop treatingupdate-ca-certificates' non-zero exit as fatal on its own. Verify the outcome instead of the exit code: after the run, confirm the community cert is present and parses (and/or that it made it intoca-certificates.crt), and only fail the join if that check fails. Log the rehash noise at WARN. Optionally scope the check to files IDSS wrote.install-commandleg, wait forcloud-init status --wait(or forcloud-init.target) on the fresh droplet. That removes the harness's own contribution and stops this masking later legs.Live box
No live-box section was appended to this brief, so I diagnosed from the harvested logs alone. The droplet is in fact still up —
logs/droplet-do-forensics.txtreadstcp/22: a FRESH connect succeeded — the box answers, whatever ssh didandstatus: active— but I was given no access line for it and did not touch it. Nothing in this diagnosis needs it: the journal already carries the concurrent dpkg run, and the store repaired itself at 12:18:11 so a live look now would show a clean/etc/ssl/certsand tell us nothing.Adjacent findings, not the red
idss-community.pemnever gets a hash symlink. Both the agent's rehash and cloud-init's warnskipping idss-community.pem, it does not contain exactly one certificate or CRL— the agent writes a multi-cert bundle into a directory that requires one certificate per file. It still lands inca-certificates.crt, so most TLS works, but anything doing hashed-directory lookup (openssl -CApath, some Go/curl configurations) will not find it. Worth splitting into one file per certificate. Independent of this red, but in the same code path.idss-agent unknown · joiningand✓ connection request sent towith an empty slot where the community label belongs — cosmetic, but it is the first thing a member reads while consenting to a full-disk wipe.12:18:29 "resumed join did not land" … enroll-relay.sock: read: connection reset by peer(journal line 1259) is downstream, not a second cause: the harness had already recorded its verdict at12:18:03.790and torn the relay socket down.Corroboration that nothing else ran
Enrolment aborted before any deploy, and the harvested state is consistent with that:
droplet-units.txtshows onlysshdandsystemd-resolvedlistening andUnit nginx.service could not be found;droplet-keri.txtshows no KERI units;clan-config-snapshot.logreadsno config repo … nothing to snapshot (a drive that never built one).broker-journal.txtharvested nothing (the broker host dev@100.98.48.68 is unreachable from this executor) — expected off-mesh behaviour under ADR 0208/#681, and the verdict does not depend on it.drive
20260830T121643Zred atconsent:the terminal join exited 1 --- transcript --- Warning: Permanently added '209.38.92.217' (ED25519) to the list of known hosts. idss-agent unknown · joining How should this machine contribute? [1] Fulevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260830T121643Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=elitebook-distributed-server-03 run=14534
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1033 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope