activation: self-hosted never switches guest forwards off the local-VM path #634
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#634
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
The drive got all the way through
deploy-takeover(366s, green — full takeover of the real DigitalOcean box succeeded, gateway rebooted into NixOS, control plane and dashboard seeded) and then the very next leg,activation, faulted in 23ms:23ms is instant — no network call was even attempted. This is not the known own-VPS pairing frontier (
pairwas green here, and this run's Access kind isself-hosted/full-install, notown-vps).Root cause (traced in
internal/foundingandinternal/fleetwire)handOverLedger(internal/founding/privatepath.go) callso.fleet.SeedLedger, which isfleetwire.Fleet.SeedLedger(internal/fleetwire/fleet.go). That resolves the guest's SSH port viaf.sshPort(), which — when aGuestForwardsseam is wired (it is, in prod:app/helper/cmd/helper/wiring_prod.go) — delegates toGuestForwards.SSHPort()(internal/fleetwire/forwards.go). That method defaults to the private path's committed local-VM forward (g.cfg.SSHPort, wired tovm.Manager.SSHPort) unlessUseOwnVPS(host)has switched it to the real box'sroot@<host>:22.The switch is driven by
ensureGuestForwards→ownVPSFoundingHost(internal/founding/ownvpspath.go:156-161):This only recognizes
AccessOwnVPS. This drive'sfounding-state.jsonhasdraft.access.kind: "self-hosted"(AccessSelfHosted) — the full-install/takeover carrier — soownVPSFoundingHostreturns"",UseOwnVPSis never called, andGuestForwardsstays on its private-path default: it asks the local VM manager for a guest SSH forward. There is no local VM here (host.json:"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"— this host doesn't even have qemu), sovm.Manager.SSHPort(internal/vm/manager.go:246) immediately returns the ADR-0126 "no guest unit on this host" error.The self-hosted path does know the box's real IP by this point —
Standup.GatewayIPis populated (209.38.93.61, viaknownGatewayIPinstandup.go, which explicitly handlesAccessSelfHosted) and is used elsewhere (deploy.go'sRotateHostKey(ctx, st.GatewayIP),SeedAmbient).ownVPSFoundingHostjust never consults it — it only readss.Draft.Access.IP, which self-hosted drafts don't populate at all.Corroboration from the live droplet (root@209.38.93.61, still up)
idss-control-planeactive and healthy, listening on:8080, loggingcomposition_whole=false(waiting on the ledger/config repo it never received).curl 127.0.0.1:8080/api/v1/fleet→{"gateway":{...,"provisioned":true,...},"nodes":[]}— alive, un-seeded./var/lib/idss/exists but is empty —enroll.jsonnever landed, confirmingSeedLedger'sscpnever ran (the error fired before any SSH/scp attempt).:22and answered immediately (no host-key friction), so a correctly-targetedssh -L/direct-SSH approach would have worked fine.The box and the deploy are sound; the harness/product just never pointed the ledger-handoff SSH call at it.
Suspected layer
Product (
internal/founding/ownvpspath.go).GuestForwards/UseOwnVPS(#437) was built to carry both live-box carriers off the local-VM default, but the self-hosted (full-install) carrier was never wired into the switch — only own-VPS was. This is a real gap, not a harness artifact: the same fleetwire code path runs in production for real self-hosted foundings.What plugging it needs
Extend
ownVPSFoundingHost(or add a sibling check) to also return the box's address forAccessSelfHosted, sourced fromStandup.GatewayIP(already populated for self-hosted viaknownGatewayIP) rather thanDraft.Access.IP(which is own-VPS-only).ensureGuestForwardstakesState, which already carriesStandup, so the fix is local toownvpspath.go— threads.Standup.GatewayIPin for the self-hosted case alongside the existing own-VPSDraft.Access.IPcase. Same fix should confirmOpenEnrolment/AwaitEnrolment'sensureGuestForwardscalls (handoff.go:421,466) pick it up too, since they share the same helper.drive
20260821T054633Zred atactivation:activation faulted: founding: hand the ledger into the fleet: fleetwire: read the guest SSH forward: vm: no guest unit on this host — create the guest first (ADR 0126)evidence:
test-results/…/20260821T054633Z/on matou-workstation (legs.json, droplet-journal.txt, trace) — a representative screenshot is attached here if one was captured (#596)swarm-claim host=elitebook-distributed-server-03 run=8339
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #634 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope