enroll-configure went red: eval preflight blocked, no vars generated for gateway #398
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#398
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 past connect/point/seed on the own-VPS carrier — SSH connected, DNS pointed, the community flake seeded, brand + header landed — then went red on the enroll-configure leg while preparing NixOS takeover (nixos-anywhere). Playwright timed out after the full 360s budget with the standup already in a terminal
blockedfault, not still working:artifacts/journey.droplet-.../error-context.md's page snapshot shows the fault line rendered in the UI:logs/founding-state.loggives the fullown-vpsevent trail and pins the cause precisely — the stage's own log line states its intended order, then contradicts it:carrying
"fault_resumable": true.Corroborating evidence
state/clan-config/.git/logs/HEADshows the config-repo commit sequence: flake seed → brand artifacts → community header → logo →secrets: add user operator→ourcloud: bake takeover-ready config for gateway→ front-door/acme-dns/gateway-dir commits. No commit generates machine vars/secrets for thegatewaynode itself — only the operator user key was added (sops/users/operator/key.json).sops/machines/orvars/directory at all — confirming no machine-scoped secret was ever generated for gateway.logs/droplet-journal.txtshows the droplet itself is healthy and reachable (cloud-init finished cleanly, SSH accepted at 15:18:55) but never shows nixos-anywhere/kexec/installer activity — takeover itself never started.logs/guest-*.logfiles (caddy, control-plane, kanidm, nextcloud, phpfpm, files-oidc, failed-units) are empty, andguest-unit.log/guest-unit-file.logcan't find any guest unit — consistent with NixOS never having been installed.artifacts/legs.jsonis[]andartifacts/journey.jsonhasrows: null, fault: null— no leg-level bookkeeping ever engaged, and there is no skip-reason referencing the known own-VPS pairing frontier.artifacts/host.jsonshows"qemu": "exit ENOENT ..."andlogs/qemu.logfinds no qemu process, but this is an own-VPS carrier drive against a real DigitalOcean droplet (170.64.161.79) — the qemu absence is inert here, not the cause.Is this the known frontier?
No. The known own-VPS frontier is the pairing/connect leg never flipping green. Here connect, point, and seed all completed — the drive got one full leg further, into enroll-configure, and hit a distinct, new blocker.
Suspected layer
Product — the founding/standup orchestrator for the own-vps carrier's enroll-configure stage. Its own log states the intended order ("eval preflight, then the machine vars") but eval preflight itself needs those vars to pass, so run in that order it can never succeed on a fresh node. The fault is correctly classified
fault_resumable: trueand names its own remedy, but nothing in enroll-configure actually invokes vars generation for the gateway node — it only surfaces the blocked status.What plugging it needs
Enroll-configure needs to run machine vars generation (
clan vars generateor equivalent) for the target node — populating whatever secret(s) the gateway's module set requires — either before eval preflight runs, or as an automatic remedy triggered by amissing_varpreflight result. A swarm agent can act directly: find the own-vps enroll-configure stage implementation (the code emitting theeval preflight/takeover-ready node config committed/missing_varmessages above) and wire in the vars-generate step so a fresh own-VPS founding no longer blocks here.drive
20260810T151050Zred atwizard:drive red at wizard — the wizard died before any leg ranevidence:
test-results/…/20260810T151050Z/on matou-workstation (legs.json, droplet-journal.txt, trace)Fixed in
f989696(on origin/main).Cause. The clan enrollment workflow ran the eval preflight (a
nix evalof the node's full config) AHEAD ofvars generate. A fresh gateway node's config references its declared vars, so the eval itself failedmissing_var("a required secret has not been generated") and the stand-up blocked forever — nosops/machines/was ever written. The stage's own log line ("eval preflight, then the machine vars") stated the wrong order: run that way, a fresh node can never pass.Fix (
internal/clan/enrollment.go). Thepreflightstage now runsclan vars generate <node> --no-sandboxahead of the eval gate (and ahead of the install phases / verify'smachines update), guarded by the snapshot'sVarsGeneratedso a resume never re-drives it. The install stage keeps a defensive fallback generate only for a resume that re-enters it directly. This fixes both the own-VPS (FullInstall) and private (VM-mode) paths, which share this workflow.Test-first at the clan-adapter seam (
internal/clan/enrollment_test.go):TestEnroll_GeneratesVarsBeforeEvalPreflightdrives a fresh node whosenix evalfailsmissing_varuntilvars generatehas run — RED before the fix (blocked "a required secret has not been generated", reproducing this issue), GREEN after.TestEnroll_VMModeGeneratesVarsBeforeVerify's asserted order updated to generate→eval.internal/clan/testing/fake.go) mirrors the corrected order so founding/join seam consumers model generate-before-preflight.All
internal/...Go tests pass under thenix develop .#go-cigate;go build ./...clean. The drive's frontier moves pastenroll-configuretowardsupply/pair. STATUS.md updated (header lead + milestone log).