takeover: the kexec installer's mesh rejoin runs netbird up against no daemon — renderInstallerMesh ships pkgs.netbird + the oneshot but never declares services.netbird.clients, so wt0 never returns and deploy-takeover reds target_lost #1057
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#1057
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?
Symptom
Drive
20260831T043317Z(device target, first drive on the warm snapshotidss-gateway-a4252af41e5a): every leg green throughselect-files, thendeploy-takeoverred at 709 s:(
artifacts/legs.json,artifacts/legs/deploy-takeover-dash.png— the dashboard's own deploy-failed panel says the same.)What actually happened — the kexec WORKED, the mesh rejoin can't
Read off the kept member droplet
clan-lab-rehearsal-e2c27a61(170.64.206.39,REHEARSAL_KEEP_RED_DROPLET=1) over its public IP at 05:29Z:nixos-installer,NixOS 26.05 (Yarara), kernel 6.18.45,/etc/NIXOSpresent — the custom kexec installer composed on the warm gateway store and booted. #1016/#1036/#1048's chain is proven: no 20 m build wall, nopkgsStaticfrom source.ip -br a:lo,ens3(public),ens4(private) — nowt0.idss-installer-mesh.service:activating (start), restart counter 18 and climbing, every attempt:journalctl -u netbird,-u netbird-wt0,-u netbird-mesh: No entries — there is no daemon unit in the image at all.Cause
renderInstallerMesh(internal/clan/netbird.go:~643-690) rendersnetbird upis a client command: it talks to the daemon over/var/run/netbird/sock. Nothing in the module declares the daemon. On the gateway the daemon exists becauserenderMeshClient(netbird.go:~418) declaresservices.netbird.clients.mesh = { port = 51820; interface = "wt0"; hardened = false; environment.NB_MANAGEMENT_URL = …; }(→netbird-mesh.service+ the socket) and the self-admit oneshot ordersafter = [ "netbird-mesh.service" … ]and putsconfig.services.netbird.clients.mesh.wrapperon itspath. The installer module copied the oneshot but not the daemon declaration, so the oneshot's "retry forever" (ADR 0159) retries against a socket that will never exist, wt0 never comes up, and every post-kexec phase seesNo route to hoston 100.68.233.153 until the leg ceiling.The offline tests (
internal/clan/installer_mesh_test.go) assert the package + oneshot + baked key, not that a daemon is declared — which is exactly the gap that let this ship.Rule
renderInstallerMeshdeclares the daemon the same way the fleet does — mirrorrenderMeshClient's shape (services.netbird.clients.mesh = { port = 51820; interface = "wt0"; hardened = false; environment.NB_MANAGEMENT_URL = <ManagementURL>; }), order the oneshotafter = [ "netbird-mesh.service" "network-online.target" ]/wants, and drivenetbird up/statusthroughconfig.services.netbird.clients.mesh.wrapperonpath(the wrapper carries the right--daemon-addr), notlib.getExe pkgs.netbird. Keep the baked single-use setup key exactly as is (ADR 0209 amendment, #1012). Prove it ininstaller_mesh_test.go: the render MUST containservices.netbird.clients.meshand the oneshot'safterMUST namenetbird-mesh.service; a render with onlyenvironment.systemPackagesfails the test. Confirm the nixos-images kexec-installer profile evaluates with the multi-client module (it's plain nixpkgs 26.05 — it should); if the profile's initrd/squashfs needs the daemon's state dir, add the tmpfiles rule.Acceptance
go test ./internal/clan/ -run InstallerMeshgreen with the new assertions.ip -br aon the installer showswt0with the device's mesh address,idss-installer-meshreachesactive (exited), anddeploy-takeoverproceeds into disko/install (a red later than the kexec phase is a new ticket, not this one).Evidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260831T043317Zon elitebook-03; the installer is still up atroot@170.64.206.39(elitebook's key) for anyone who wants to look before it's reaped.swarm-claim host=matou-dev-server-01 run=14997
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1057 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
remove-devicethe change surface never renders — a red drive burns its whole 195m budget, and its droplet's wall-clock, after the verdict is known #1067