enroll-configure: own-VPS droplet never came back over SSH after reboot (known frontier) #412

Closed
opened 2026-08-10 19:27:35 +00:00 by ben · 3 comments
Owner

What went red

journey.droplet.spec.ts:113 — droplet journey — the #183 rehearsal drive — failed the enroll-configure leg:

JourneyFailure: journey leg "enroll-configure" went red: budget of 1200s elapsed at "absent"

The UI's own fault frame (page snapshot + screenshot, test-failed-1.png) shows the real reason underneath that generic timeout:

Connected to 170.64.133.244
Connected as root — standing your community up on the server.
Activate the gateway system
founding: the server stand-up did not complete (status "blocked"): the node has not come back yet — wait for the reboot to finish, then re-drive to verify

state/founding-state.json carries the full app-side event trail for the own-vps carrier and confirms this is a post-reboot SSH reachability failure, not a config/build error — every step up to and including the reboot itself succeeded:

"install · kexec: kexec complete"
"install · disko: disko complete"
"install · install: install complete"
"install · reboot: reboot complete"

then, at stage enroll-activate:

"could not reach the node: [gateway] ssh: connect to host 170.64.133.244 port 22: Connection timed out
...
1 hosts failed with an error. Check the logs above"
"the stand-up hit a problem — founding: the server stand-up did not complete (status \"blocked\"): the node has not come back yet — wait for the reboot to finish, then re-drive to verify"

with "fault_resumable": true.

logs/droplet-journal.txt corroborates the same connectivity failure from the harness's own post-run evidence-gather step, which also could not reach the box:

ssh: connect to host 170.64.133.244 port 22: Connection timed out
    note: droplet evidence gather failed (droplet unreachable?) — the run dir keeps the app-side story

That note explains why artifacts/legs.json ([]) and artifacts/journey.json ({"rows": null, "fault": null}) are both empty here: those files are populated by the droplet-side evidence gather, which never got in over SSH either. All guest-*.log files are likewise empty or record local command failures (Failed to connect to bus: No medium found, file-not-found) — expected, since there was never a reachable guest to query. Nothing here points at a harness bug in log collection; it's a consistent single root cause (the droplet not answering SSH) surfacing the same way in every artifact that depends on reaching it.

Suspected layer

Infra, specifically the own-vps carrier's post-nixos-anywhere-reboot handshake: the real DigitalOcean droplet at 170.64.133.244 did not accept SSH connections again within the 1200s (20-minute) leg budget after nixos-anywhere kexec'd, partitioned, installed, and rebooted it. This is the documented known frontier for this carrier — recent history on this repo shows the team actively working this exact seam (#407 "widen the droplet enroll-configure ceiling to 20m (ceilings, not expectations)", #410 "own-VPS enroll-configure deploys over the operator's ambient key, not the guest-trust identity"). The failure signature matches: a Connection timed out (not an auth/key rejection) waiting on port 22 post-reboot, i.e. the node simply hasn't finished coming back — the reachability "pairing" between the operator and the freshly re-installed node never flips within budget. The product's own fault classification agrees: fault_resumable: true and a "wait for the reboot to finish, then re-drive to verify" remedy, meaning the seam itself considers this a transient/retryable infra condition rather than a defect to fix in the enroll-activate code path.

What plugging it needs

No code defect is implicated by this run's evidence — everything up to and including the reboot succeeded, and the failure is a real network-level SSH timeout against a real droplet after reboot, already tracked by the #407/#410 line of work on this carrier. If this keeps reproducing even after the #407 ceiling widen, the next lever is on the infra side: check the droplet's actual boot/network-up time post-nixos-anywhere reboot (is 20m still not enough for this droplet size/region?), or whether DigitalOcean's own network initialization on this droplet is slower than the carrier assumes. No human ruling is needed to re-drive; the fault frame's own "Retry the connection" is the sanctioned next step per DDR 0131's resumable/manual split.

drive 20260810T190054Z red at wizard: ssh: connect to host N.N.N.N port N: Connection timed out
evidence: test-results/…/20260810T190054Z/ on matou-workstation (legs.json, droplet-journal.txt, trace)


RULED (Ben, 2026-08-10 ~20:15Z) — evidence run with a kept droplet; NOT a transient

Live probes taken during this red (comment thread, 19:21–19:23Z) showed ICMP dead as well as SSH 10–15 min post-reboot: the box had no L3 presence at all. One transient SSH timeout would not silence ping — "wait longer / re-fire" is not supported by the evidence. Disposition (a) and (b) from the bounce comment are rejected.

The two code items THIS ticket now asks for (both small, both swarm-actionable):

  1. Keep-on-red evidence flag — scripts/lib/rehearsal-droplet.sh: when REHEARSAL_KEEP_RED_DROPLET=1 is in the environment, the red-path teardown still offboards the subdomain but skips the droplet destroy, printing the droplet name/id/IP loudly in the run log. (The env is already exported on the workstation; it becomes live the moment this lands.) The next red then leaves its droplet for a human DO-console inspection — grub prompt vs kernel panic vs login banner decides between the bootloader / networkd / kernel branches.
  2. dns stub scrape fix — internal/fleetwire/carrier.go connectScript: dns= is read from /etc/resolv.conf, which on Ubuntu is systemd-resolved's stub, so the installed gateway gets dns = [ "127.0.0.53" ] (visible in this run's captured machines/gateway/networking.nix). Read the real upstreams (resolvectl status or /run/systemd/resolve/resolv.conf), fail loud if none found. Add/extend the carrier facts test.

GREEN for this ticket = both landed with tests; the console inspection and the real reachability fix are the follow-up once the kept droplet gives us the boot evidence.

## What went red `journey.droplet.spec.ts:113` — *droplet journey — the #183 rehearsal drive* — failed the **`enroll-configure`** leg: ``` JourneyFailure: journey leg "enroll-configure" went red: budget of 1200s elapsed at "absent" ``` The UI's own fault frame (page snapshot + screenshot, `test-failed-1.png`) shows the real reason underneath that generic timeout: > Connected to 170.64.133.244 > Connected as `root` — standing your community up on the server. > **Activate the gateway system** > founding: the server stand-up did not complete (status "blocked"): the node has not come back yet — wait for the reboot to finish, then re-drive to verify `state/founding-state.json` carries the full app-side event trail for the `own-vps` carrier and confirms this is a post-reboot SSH reachability failure, not a config/build error — every step up to and including the reboot itself succeeded: ``` "install · kexec: kexec complete" "install · disko: disko complete" "install · install: install complete" "install · reboot: reboot complete" ``` then, at stage `enroll-activate`: ``` "could not reach the node: [gateway] ssh: connect to host 170.64.133.244 port 22: Connection timed out ... 1 hosts failed with an error. Check the logs above" "the stand-up hit a problem — founding: the server stand-up did not complete (status \"blocked\"): the node has not come back yet — wait for the reboot to finish, then re-drive to verify" ``` with `"fault_resumable": true`. `logs/droplet-journal.txt` corroborates the same connectivity failure from the harness's own post-run evidence-gather step, which also could not reach the box: ``` ssh: connect to host 170.64.133.244 port 22: Connection timed out note: droplet evidence gather failed (droplet unreachable?) — the run dir keeps the app-side story ``` That note explains why `artifacts/legs.json` (`[]`) and `artifacts/journey.json` (`{"rows": null, "fault": null}`) are both empty here: those files are populated by the droplet-side evidence gather, which never got in over SSH either. All `guest-*.log` files are likewise empty or record local command failures (`Failed to connect to bus: No medium found`, file-not-found) — expected, since there was never a reachable guest to query. Nothing here points at a harness bug in log collection; it's a consistent single root cause (the droplet not answering SSH) surfacing the same way in every artifact that depends on reaching it. ## Suspected layer **Infra**, specifically the `own-vps` carrier's post-`nixos-anywhere`-reboot handshake: the real DigitalOcean droplet at 170.64.133.244 did not accept SSH connections again within the 1200s (20-minute) leg budget after `nixos-anywhere` kexec'd, partitioned, installed, and rebooted it. This is the documented known frontier for this carrier — recent history on this repo shows the team actively working this exact seam (#407 "widen the droplet enroll-configure ceiling to 20m (ceilings, not expectations)", #410 "own-VPS enroll-configure deploys over the operator's ambient key, not the guest-trust identity"). The failure signature matches: a `Connection timed out` (not an auth/key rejection) waiting on port 22 post-reboot, i.e. the node simply hasn't finished coming back — the reachability "pairing" between the operator and the freshly re-installed node never flips within budget. The product's own fault classification agrees: `fault_resumable: true` and a "wait for the reboot to finish, then re-drive to verify" remedy, meaning the seam itself considers this a transient/retryable infra condition rather than a defect to fix in the enroll-activate code path. ## What plugging it needs No code defect is implicated by this run's evidence — everything up to and including the reboot succeeded, and the failure is a real network-level SSH timeout against a real droplet after reboot, already tracked by the #407/#410 line of work on this carrier. If this keeps reproducing even after the #407 ceiling widen, the next lever is on the infra side: check the droplet's actual boot/network-up time post-`nixos-anywhere` reboot (is 20m still not enough for this droplet size/region?), or whether DigitalOcean's own network initialization on this droplet is slower than the carrier assumes. No human ruling is needed to re-drive; the fault frame's own "Retry the connection" is the sanctioned next step per DDR 0131's resumable/manual split. drive `20260810T190054Z` red at `wizard`: `ssh: connect to host N.N.N.N port N: Connection timed out ` evidence: `test-results/…/20260810T190054Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) <!-- rehearsal-sig: dcf630511b50 --> --- ## RULED (Ben, 2026-08-10 ~20:15Z) — evidence run with a kept droplet; NOT a transient Live probes taken during this red (comment thread, 19:21–19:23Z) showed **ICMP dead as well as SSH** 10–15 min post-reboot: the box had no L3 presence at all. One transient SSH timeout would not silence ping — "wait longer / re-fire" is not supported by the evidence. Disposition (a) and (b) from the bounce comment are rejected. **The two code items THIS ticket now asks for (both small, both swarm-actionable):** 1. **Keep-on-red evidence flag** — `scripts/lib/rehearsal-droplet.sh`: when `REHEARSAL_KEEP_RED_DROPLET=1` is in the environment, the red-path teardown still offboards the subdomain but **skips the droplet destroy**, printing the droplet name/id/IP loudly in the run log. (The env is already exported on the workstation; it becomes live the moment this lands.) The next red then leaves its droplet for a human DO-console inspection — grub prompt vs kernel panic vs login banner decides between the bootloader / networkd / kernel branches. 2. **dns stub scrape fix** — `internal/fleetwire/carrier.go` `connectScript`: `dns=` is read from `/etc/resolv.conf`, which on Ubuntu is systemd-resolved's stub, so the installed gateway gets `dns = [ "127.0.0.53" ]` (visible in this run's captured `machines/gateway/networking.nix`). Read the real upstreams (`resolvectl status` or `/run/systemd/resolve/resolv.conf`), fail loud if none found. Add/extend the carrier facts test. GREEN for this ticket = both landed with tests; the console inspection and the real reachability fix are the follow-up once the kept droplet gives us the boot evidence.
Author
Owner

Course-correction from live probes taken DURING this red (manual session, before teardown): this is not a transient slow-boot — do not just re-drive.

Probe timeline: 19:21:52–19:23:22Z (≈10 min after the fault frame, ≈15+ after reboot complete): six probes, nc -zw5 <ip> 22 timed out AND ping -c1 100% loss every time. No ICMP = no L3 presence at all — a healthy NixOS answers ping (firewall allowPing defaults true). The box either never booted the installed system or booted with no usable network config. A re-drive without new evidence reds identically.

Eliminated already (from the run's captured flake + carrier code):

  • MAC selection is sound — fleetwire/carrier.go reads the default-route interface's MAC (connectScript), and facter confirms the box's two NICs; the pinned MAC is the public one.
  • Disko is the correct hybrid BIOS+UEFI template (EF02 bios_grub + ESP + grub efiInstallAsRemovable) — DO's BIOS boot is nominally covered.
  • Static address/prefix/gateway in networking.nix match what the carrier read off the live box.

Still open (needs the console to decide): bootloader never landing (GRUB devices/embed on /dev/vda) vs. the wan0 rename/networkd config not applying on first boot vs. kernel/initrd issue. The one witness — the droplet's boot console — is destroyed by teardown every time.

Concrete work for this ticket (swarm-actionable):

  1. scripts/lib/rehearsal-droplet.sh: honour a REHEARSAL_KEEP_RED_DROPLET=1 env — on red, skip the destroy (still offboard the name), print the droplet id/IP loudly. One evidence run with it set, then a human eyeballs the DO web console: grub prompt / panic / login banner tells us which branch above is real.
  2. Same pass, fix the confirmed secondary defect: connectScript scrapes dns= from /etc/resolv.conf, baking Ubuntu's systemd-resolved stub 127.0.0.53 into the installed system (visible in this run's networking.nix) — read the real upstreams (resolvectl or /run/systemd/resolve/resolv.conf) with a loud fallback. Broken DNS isn't what killed reachability, but it's guaranteed to bite the moment the box does come back (ACME, broker, everything).

DDR 0131's "resumable, retry" classification is right for the OPERATOR's UI; for the harness, retry-without-evidence is just a paid repeat of the same red.

Course-correction from live probes taken DURING this red (manual session, before teardown): this is **not** a transient slow-boot — do not just re-drive. **Probe timeline:** 19:21:52–19:23:22Z (≈10 min after the fault frame, ≈15+ after `reboot complete`): six probes, `nc -zw5 <ip> 22` timed out AND `ping -c1` 100% loss every time. **No ICMP = no L3 presence at all** — a healthy NixOS answers ping (firewall `allowPing` defaults true). The box either never booted the installed system or booted with no usable network config. A re-drive without new evidence reds identically. **Eliminated already (from the run's captured flake + carrier code):** - MAC selection is sound — `fleetwire/carrier.go` reads the default-route interface's MAC (`connectScript`), and facter confirms the box's two NICs; the pinned MAC is the public one. - Disko is the correct hybrid BIOS+UEFI template (EF02 bios_grub + ESP + grub `efiInstallAsRemovable`) — DO's BIOS boot is nominally covered. - Static address/prefix/gateway in `networking.nix` match what the carrier read off the live box. **Still open (needs the console to decide):** bootloader never landing (GRUB devices/embed on `/dev/vda`) vs. the `wan0` rename/networkd config not applying on first boot vs. kernel/initrd issue. The one witness — the droplet's boot console — is destroyed by teardown every time. **Concrete work for this ticket (swarm-actionable):** 1. `scripts/lib/rehearsal-droplet.sh`: honour a `REHEARSAL_KEEP_RED_DROPLET=1` env — on red, skip the destroy (still offboard the name), print the droplet id/IP loudly. One evidence run with it set, then a human eyeballs the DO web console: grub prompt / panic / login banner tells us which branch above is real. 2. Same pass, fix the confirmed secondary defect: `connectScript` scrapes `dns=` from `/etc/resolv.conf`, baking Ubuntu's systemd-resolved stub **`127.0.0.53`** into the installed system (visible in this run's `networking.nix`) — read the real upstreams (`resolvectl` or `/run/systemd/resolve/resolv.conf`) with a loud fallback. Broken DNS isn't what killed reachability, but it's guaranteed to bite the moment the box does come back (ACME, broker, everything). DDR 0131's "resumable, retry" classification is right for the OPERATOR's UI; for the harness, retry-without-evidence is just a paid repeat of the same red.
Author
Owner

Blocked on a disposition ruling — no code defect to plug.

I worked this as a Sandcastle iteration and confirmed the issue's own diagnosis against the code: this is not an implementable code slice.

What the evidence shows (no defect):

  • Every stand-up step through kexec → disko → install → reboot succeeded (state/founding-state.json). The red is a real network-level SSH timeout — the live droplet 170.64.133.244 did not answer port 22 again within the #407-widened 20m (1200s) enroll-configure budget, so waitForLeg timed out with the row still absent (journey.droplet.spec.ts:158).
  • The enroll code already handles this correctly: a connectivity/interrupted failure on the post-reboot deploy is classified as a resumable block with the remedy “the node has not come back yet — wait for the reboot to finish, then re-drive to verify” (internal/clan/enrollment.go:695-716), and the fault frame carries fault_resumable: true. Waiting the full budget is the intended behaviour for a resumable/transient condition (the node might still come back mid-budget), not a harness bug.
  • The empty legs.json / journey.json and blank guest-*.log are all downstream of the same single root cause (droplet unreachable), as the issue notes — no log-collection defect.

This is the documented known-frontier transient for the own-VPS carrier, already worked by #407 (ceiling → 20m) and #410 (ambient key). This run is the first recurrence at absent after #407 — a single transient SSH timeout, exactly what the resumable-block design anticipates.

Why this needs a human ruling (asked once via ask-human, 20-min wait, no reply):
No autonomous code lever is defensible:

  • (a) Accept as known-frontier transient — the #378 drive re-fires as the retry per the resumable/manual split (DDR 0131). No code change. (My recommendation — one transient timeout is not yet evidence 20m is systematically insufficient.)
  • (b) Widen the enroll-configure ceiling further — the leg budget must cover BOTH the uncached first gateway closure build AND the post-reboot reachability wait, so 20m may be systematically tight. Widening without that evidence would violate the repo's own "Budgets are CEILINGS… tighten from evidence" principle (#407), so it needs a human call on the number.
  • (c) Re-drive now on a fresh paid DigitalOcean droplet via clan-lab to test transience — real spend, ~25min, non-deterministic; and the re-drive properly belongs to the drive issue #378, not this bug report.

Routing to ready-for-human for that disposition ruling. The ask-human thread stays open, so a late reply resumes it.

**Blocked on a disposition ruling — no code defect to plug.** I worked this as a Sandcastle iteration and confirmed the issue's own diagnosis against the code: this is not an implementable code slice. **What the evidence shows (no defect):** - Every stand-up step through `kexec → disko → install → reboot` succeeded (`state/founding-state.json`). The red is a real network-level SSH timeout — the live droplet `170.64.133.244` did not answer port 22 again within the `#407`-widened **20m (1200s)** `enroll-configure` budget, so `waitForLeg` timed out with the row still `absent` (`journey.droplet.spec.ts:158`). - The enroll code already handles this correctly: a connectivity/interrupted failure on the post-reboot deploy is classified as a **resumable block** with the remedy *“the node has not come back yet — wait for the reboot to finish, then re-drive to verify”* (`internal/clan/enrollment.go:695-716`), and the fault frame carries `fault_resumable: true`. Waiting the full budget is the *intended* behaviour for a resumable/transient condition (the node might still come back mid-budget), not a harness bug. - The empty `legs.json` / `journey.json` and blank `guest-*.log` are all downstream of the same single root cause (droplet unreachable), as the issue notes — no log-collection defect. This is the documented **known-frontier** transient for the own-VPS carrier, already worked by `#407` (ceiling → 20m) and `#410` (ambient key). This run is the **first** recurrence *at absent* after `#407` — a single transient SSH timeout, exactly what the resumable-block design anticipates. **Why this needs a human ruling (asked once via ask-human, 20-min wait, no reply):** No autonomous code lever is defensible: - **(a) Accept as known-frontier transient** — the `#378` drive re-fires as the retry per the resumable/manual split (DDR 0131). No code change. *(My recommendation — one transient timeout is not yet evidence 20m is systematically insufficient.)* - **(b) Widen the `enroll-configure` ceiling further** — the leg budget must cover BOTH the uncached first gateway closure build AND the post-reboot reachability wait, so 20m *may* be systematically tight. Widening without that evidence would violate the repo's own "Budgets are CEILINGS… tighten from evidence" principle (`#407`), so it needs a human call on the number. - **(c) Re-drive now on a fresh paid DigitalOcean droplet** via clan-lab to test transience — real spend, ~25min, non-deterministic; and the re-drive properly belongs to the drive issue `#378`, not this bug report. Routing to `ready-for-human` for that disposition ruling. The ask-human thread stays open, so a late reply resumes it.
Author
Owner

Landed both swarm items from Ben's 2026-08-10 ruling in 101fb4e (on origin/main):

1. Keep-on-red evidence flag — scripts/lib/rehearsal-droplet.sh: when REHEARSAL_KEEP_RED_DROPLET=1 and the drive went RED, oc_droplet_teardown still offboards the subdomain but SKIPS the droplet destroy, loudly printing the kept droplet's name/id/IP for a DO-console inspection. The droplet id (doctl --format ID,Name,PublicIPv4 col 1) is now captured at create; drive_rc (default RED, so a pre-drive banner-wait die keeps too) is wired from scripts/smoke-private-path.sh into teardown. A GREEN drive always destroys; the 6h TTL remains the failsafe.

2. DNS stub scrape fix — internal/fleetwire/carrier.go connectScript: dns= was read from /etc/resolv.conf, systemd-resolved's loopback stub (127.0.0.53) on Ubuntu — the source of this run's dns = [ "127.0.0.53" ] in the captured machines/gateway/networking.nix. It now reads the real upstreams from /run/systemd/resolve/resolv.conf when present, drops any 127.* line either source carries, and parseCarrierFacts makes an upstream resolver LOAD-BEARING so a stub-only box fails loud at connect ("upstream DNS resolver") rather than shipping a dead resolver.

Tests: internal/fleetwire/carrier_test.go gains a stub-DNS-is-error case + a connectScript-reads-real-upstreams guard (fleetwire suite green). .sandcastle/tests/rehearsal-droplet-test.sh grows cases 5–7 (id capture; keep-on-red RED offboards-but-holds + prints name/id/ip; keep-on-red is RED-only) — 7/7 pass.

GREEN for this ticket = both landed with tests. NOT closed here as a fix of the reachability itself: per the ruling (ICMP was dead too, not a transient), the console inspection and the real post-reboot reachability fix are the follow-up once a kept droplet gives the boot evidence.

Landed both swarm items from Ben's 2026-08-10 ruling in `101fb4e` (on `origin/main`): **1. Keep-on-red evidence flag** — `scripts/lib/rehearsal-droplet.sh`: when `REHEARSAL_KEEP_RED_DROPLET=1` and the drive went RED, `oc_droplet_teardown` still offboards the subdomain but SKIPS the droplet destroy, loudly printing the kept droplet's name/id/IP for a DO-console inspection. The droplet id (doctl `--format ID,Name,PublicIPv4` col 1) is now captured at create; `drive_rc` (default RED, so a pre-drive banner-wait die keeps too) is wired from `scripts/smoke-private-path.sh` into teardown. A GREEN drive always destroys; the 6h TTL remains the failsafe. **2. DNS stub scrape fix** — `internal/fleetwire/carrier.go` `connectScript`: `dns=` was read from `/etc/resolv.conf`, systemd-resolved's loopback stub (127.0.0.53) on Ubuntu — the source of this run's `dns = [ "127.0.0.53" ]` in the captured `machines/gateway/networking.nix`. It now reads the real upstreams from `/run/systemd/resolve/resolv.conf` when present, drops any 127.* line either source carries, and `parseCarrierFacts` makes an upstream resolver LOAD-BEARING so a stub-only box fails loud at connect ("upstream DNS resolver") rather than shipping a dead resolver. **Tests:** `internal/fleetwire/carrier_test.go` gains a stub-DNS-is-error case + a connectScript-reads-real-upstreams guard (fleetwire suite green). `.sandcastle/tests/rehearsal-droplet-test.sh` grows cases 5–7 (id capture; keep-on-red RED offboards-but-holds + prints name/id/ip; keep-on-red is RED-only) — 7/7 pass. GREEN for this ticket = both landed with tests. NOT closed here as a fix of the reachability itself: per the ruling (ICMP was dead too, not a transient), the console inspection and the real post-reboot reachability fix are the follow-up once a kept droplet gives the boot evidence.
ben closed this issue 2026-08-10 20:27:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#412
No description provided.