The member files front-door route is rendered before the takeover, so it targets the dead pre-kexec landing address #1072
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#1072
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
A member-device files placement commits the gateway's front-door route
files.<apex> → <device-mesh-ip>:80before the takeover runs, using the device's PRE-kexec landing address. The takeover then moves the device to a different mesh address, and nothing re-renders the route — soStepDeployServicesdeploys a gateway whose files door points at an address no mesh peer holds.Not yet observed on a drive:
20260831T141810Zred one step earlier, atseed(healed in commita9a01025), so the deploy never reachedStepDeployServices. With that step now reachable the next drive walks straight into this atfiles-door.Evidence
The address genuinely moves across the takeover.
logs/gateway-journal.txt: the device's original netbird peerZWxBVn3a4…(v0.77.1 — the peer holding100.82.250.140) goes ICE-disconnected at 15:33:32 and never returns; the kexec installer registers as a NEW peerh6G/OBEY…at 15:33:49 (v0.71.4, endpoint 10.126.0.5) and the installed member comes back as that same peer at 15:39:34 (v0.72.3, endpoint 170.64.152.147). That is #1068's premise as stated in code —internal/clan/enrollment.go:915-921: "a fresh WireGuard key redeeming the single-use node-scoped key is, to management, a new peer, so it is allocated a new IP".The route is rendered from the pre-takeover address.
internal/provision/deploy.go:778—files := clan.LiveService{Slug: clan.FilesSlug, MeshTarget: d.MeshAddress + ":80"}— thenAttachFrontDooratinternal/provision/deploy.go:782.…and it runs in deploy step 1, before the takeover.
internal/provision/takeover.go:68-84(StepCommitConfig→attachCatalogueService→attachFilesPlacement,internal/provision/deploy.go:659-671→attachMemberFilesPlacement), whereasrunTakeoveris step 3 atinternal/provision/takeover.go:104.The #1069 write-back is the ledger only, and runs after.
internal/provision/takeover.go:289callsrecordRejoinedMeshAddress(internal/provision/takeover.go:306-324), whose sole write ismeshRecorder.RecordMeshAddressatinternal/provision/takeover.go:320. It fixesDevice.MeshAddress; it re-renders nothing.Nothing else rewrites the route.
AttachFrontDoorwith a member mesh target has exactly one production call site —internal/provision/deploy.go:782(the other two are the gateway co-host path at:721and the files-removal path at:866).Step 5 applies the step-1 revision.
run.Revisionis set atinternal/provision/takeover.go:80and handed toapplyRevisionatinternal/provision/takeover.go:125.So #1069's claim — "the front door's files route (deploy.go) targets the live box, not the dead landing IP1" — holds for the ledger's
Device.MeshAddressbut not for the route that is actually committed and deployed.Suspected layer
internal/provisionorchestration ordering, not the clan render. The render is correct; it just runs before the address it needs is knowable.What plugging it needs
After
recordRejoinedMeshAddresslands the live address and beforeStepDeployServices, re-drive the member files placement's front-door half against the freshly-reado.fleet.Device— theAttachFrontDoor+ComposeGatewayCohostpair inattachMemberFilesPlacement(internal/provision/deploy.go:770-786) — and advancerun.Revisionto that new commit soapplyRevision(internal/provision/takeover.go:123-132) deploys the corrected route rather than the step-1 one. Gate it on a real mesh member-device files placement (memberDevicePlacement,internal/provision/deploy.go:746-759) so every other deploy is byte-unchanged; a no-op when the address did not move (the same early returnrecordRejoinedMeshAddressalready makes atinternal/provision/takeover.go:317).Seam test to pin it: a takeover that reaches Done with an
InstallerResolverreturning a DIFFERENT address must leave the gateway apply carrying a front-door live set that names the NEW address and never the landing one.drive
20260831T141810Zred atdeploy-takeover:deploy failed (rescue): provision: seed node-req-0003: clan: connectivity on node-req-0003: could not reach the node: ssh: connect to host 100.82.250.140 port 22: No route to host error: failed to staevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260831T141810Zon 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=15233
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1072 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope