enroll-activate: cloud-init.service fails IsADirectoryError on /var/lib/cloud/instance #893
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#893
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?
Drive
20260827T065053Z(commit5d64bee, targetdevice) reds at journey legenroll-activate.verdict.jsonnamesfirstRedLeg: standing—standingis the outer wrapper leg and carries the identical error string; the real stop isenroll-activate.Not the known frontier
The KNOWN own-VPS pairing frontier is not what this run hit.
legs.jsoncarries no skip records at all (verdict.json:"skip": 0), so nothing in this drive's own records names this red as out of scope — and the drive never reached pairing: it died inside stand-up, 11 legs deep. On the rented path pairing is a no-op anyway (founding-state.log:"the app connects to the rented server over its own key — no device-end consent (a fresh server has nothing to erase)"). This is a new red.The failure
legs.json, legenroll-activate("status": "red", 235022 ms):Everything before it is green —
wizard-rent,claim,create,image-boot,connect,point-row,seed,supply,enroll-configure,enroll-build,enroll-copy(11 green / 2 red). The same string is the terminalstandup.faultinlogs/founding-state.log, and the same string is on screen in the operator app (error-context.mdpage snapshot, underActivate the gateway system, besideRetry/Switch the Access option).founding-state.logshows activation had just begun and the box was healthy one event earlier:then, the very next event, the
masked_exit.standup.stepnever advances past"rented".Note the two PIDs,
2304then2515, 13 s apart: systemd retried the unit and it crashed identically./var/lib/cloud/instanceis supposed to be a symlink into/var/lib/cloud/instances/<iid>; cloud-init unlinks and re-creates it on each init, andos.unlink()against a real directory raises exactlyIsADirectoryError: [Errno 21]. So that path exists on the gateway as a plain directory — a state cloud-init cannot repair itself out of, which is why the retry failed the same way and why every subsequent converge onto this box reds identically.The masked_exit detector is right — don't chase it
clanexited 0; the harness'smasked_exitcheck read the deploy log and refused the pass. Two systemd units genuinely failed (cloud-init.service,cloud-config.target). The detector is doing its job.Suspected layer: product, with a harness gap beside it
Product — the deployed rented-gateway NixOS config. cloud-init had already completed on this droplet (it booted and was connected at 06:52 per the
install/connectevents); the crash is at 07:03:59, i.e. duringswitch-to-configuration. Activation restarting the cloud-init unit set on an already-initialised box is what re-runs the init/config/final stages over already-written state and leavesinstanceas a directory. Not drive-specific: every converge onto a rented gateway takes this path.Harness — the
devicetarget harvests no droplet-side evidence. There is nologs/droplet-journal.txtin this run directory despite the brief naming one. What is there instead is the VM-target harvest, every file of which reports there was no VM:guest-failed-units.log—no SSH hostfwd in /home/swarm/.config/systemd/user/idss-guest.service — the guest was never created, so there is nothing to askguest-unit-file.log—cat: /home/swarm/.config/systemd/user/idss-guest.service: No such file or directoryguest-journal.log—-- No entries --qemu.log—ps -o pid,etime,args -C qemu-system-x86_64returns no rows;artifacts/host.jsonconfirms the executor has no qemu at all ("qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT")The one machine that could answer which unit failed and why — the droplet at
168.144.173.213(artifacts/droplet-ip.txt) — was never asked, even though the device drive leaves it standing.Also absent or empty, for the record
artifacts/journey.jsonis{"rows": null, "fault": null}— the drive never reached its own founding rows.logs/broker-journal.txtisdev@100.98.48.68: Permission denied (publickey), self-annotated as by design for an off-mesh executor (ADR 0208 / #681) and not verdict-bearing.logs/helper.logis empty (0 bytes);state/is empty;state-logs.logis an ENOENT fortest-results/standing-rented/state/logs.Live box
No live-box section was appended to this diagnosis, so I did not contact
168.144.173.213. Everything above is from the harvested records. On provenance:logs/healer-claude.out— a healing agent's record left in this run dir, not a raw journal — reports that it did read the box while it was up, and pins a concurrency race per-millisecond:cloud-init-local(pid 2110) creating the symlink at07:03:58.262, the path reborn as a directory at07:03:58.281, a second stage writinginstances/iid-datasource-none/sem/*(a cloud-init that resolved no datasource) in the gap, and pid 2304 reachingdel_file(instance_link)at07:03:59.617. That is consistent with the primary artifacts, and it points atinternal/clan/vmguest.go(rentedHostNetworking()splicingservices.cloud-init = { enable = true; network.enable = true; ... }) as the source, plus a guarding render test asserting the current shape. I could not verify those file/line references — reads outside the run directory were denied in this session — so treat them as leads to confirm, not as established.What plugging it needs
restartIfChanged = falseso a converge does not restage them — this leaves GOTCHAS #64'snetworking.useNetworkd = trueruling entirely untouched. Fuller step: dropservices.cloud-initfrom the deployed rented config and rely on the already-written/etc/systemd/network/10-cloud-init-*.network, which activation does not touch. Either needs a live droplet converge to prove the address and default route survive activation./var/lib/cloud/instancemust be a symlink to/var/lib/cloud/instances/<iid>again. While it is a directory,cloud-init.servicestays failed and any re-drive adopting this standing community reds atenroll-activateon the box's state rather than on the code under test — which will read as "the fix didn't work". Re-founding is the clean option.devicetarget harvest the droplet journal. It already writesartifacts/droplet-ip.txt; the rented target gathers droplet evidence before cleanup and the device teardown skips that step. Without it, this whole class of red is diagnosable only by luck — the box happening to outlive the drive.services.cloud-initlines, so it will fail on any of the fixes above).No change is needed to the
masked_exitdetector.drive
20260827T065053Zred 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] Failed to start cloud-initevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260827T065053Zon 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=12647
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #893 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
rehearsal-cslug with no pre-rent reservation sweep, andoc_standing_teardownbins the claim secret on a red re-found — the name is now permanently wedged (GOTCHAS #80 / #757) #896rehearsal-cslug wedged, device target has no pre-rent sweep #897