supply: control-plane deploy probe used node-req-0001 id, not clan machine "gateway" #457

Closed
opened 2026-08-12 00:20:11 +00:00 by ben · 2 comments
Owner

Failure

Leg supply (harness leg id) — UI-reported leg control-plane — went red during the own-vps gateway deploy, immediately after pairing succeeded:

journey leg "control-plane" went red: founding: gateway deploy: founding: probe ourcloud-control-plane.service on the gateway: clan: UnitActive: no deploy target for node-req-0001 — the node's SSH target is unknown

(artifacts/legs.json, leg "supply", "status": "red", same message; also rendered in the app UI per error-context.md: "Paired — the server is enrolled as your community's gateway." immediately followed by the same fault line.)

This is NOT the known own-VPS carrier frontier

legs.json carries no skip reasons here — every leg up to supply is green, including enroll-activate, and founding-state.json shows pairing completed cleanly:

"gateway paired and approved as node node-req-0001 — probed 2 vCPU · 4 GB · 76 GB meets the minimum"
"paired — the community name was aimed at the server before install, so the public reachability check is skipped; the gateway deploy begins"

The pairing-never-flips frontier does not apply here — this run got past pairing and failed one step later, in the post-deploy liveness probe.

Evidence the control-plane service itself is fine

logs/droplet-journal.txt shows the guest's ourcloud-control-plane.service actually came up successfully at 00:11:05, after early restarts failing loud because the binary hadn't synced yet:

Aug 12 00:11:05 gateway systemd[1]: Started ourcloud-control-plane.service.
Aug 12 00:11:05 gateway ourcloud-control-plane-start[1728]: time=2026-08-12T00:11:05.246Z level=INFO msg="control-plane serving the OpenAPI API" component=control-plane addr=:8080 ...

So the fault is not the service crashing on the box — it's the orchestrator on the host side failing to find an SSH target to run the liveness probe against.

Root cause: ledger node-id used where the clan machine name is needed

state/clan-config/inventory.json keys the deploy target by the clan machine name, not the ledger node id:

"machines": { "gateway": { "deploy": { "targetHost": "root@209.38.19.20" }, ... } }

But founding-state.json's standup record shows the fault fired while the probe was looking up "node-req-0001" (the fleet ledger's node id) even though the same record carries "clan_node": "gateway" right next to it. clan's UnitActive has nothing under that key, so it reports "no deploy target" / "the node's SSH target is unknown" — the target exists, just under a different key than the one being queried.

Suspected layer: product

Go orchestrator (internal/founding, deploy.go's clan-facing calls) — not the harness and not infra. The droplet, DNS, and SSH all behaved correctly; only the host-side lookup used the wrong key.

What plugging it needs

logs/healer-claude.out shows this exact defect was already diagnosed and fixed inside this run's swarm, landed as commit d68e840475b19d4881569cfe045d783373483835:

deploy.go's clan-facing calls (applyControlPlane, UnitActive, RemoveNode) used the fleet ledger's node id (st.Node) instead of the clan inventory's own machine name (st.ClanNode, e.g. "gateway"), so the own-VPS/private-VM deploy silently skipped the real machine during apply and then failed loud on the #443 liveness probe with "no deploy target for node-req-0001"; added the same st.ClanNode-falls-back-to-st.Node lookup seed.go already uses at every clan-facing call site in deploy.go.

Verification noted in the same log: go test ./internal/founding/... ./internal/clan/... passing, and TestOwnVPS_CarrierDrivesConnectPointInstallSeedPairToHandoff extended to assert UnitActive probes "gateway" and confirmed red without the fix, green with it.

This run captured the pre-fix state. The plug is: confirm commit d68e840 (or the equivalent fix, if this rehearsal built from a branch that doesn't yet have it) is merged, then re-drive to confirm the supply/control-plane leg goes green.

drive 20260812T000306Z red at supply: journey leg "control-plane" went red: founding: gateway deploy: founding: probe ourcloud-control-plane.service on the gateway: clan: UnitActive: no deploy target for node-req-N — the node's SSH targ
evidence: test-results/…/20260812T000306Z/ on matou-workstation (legs.json, droplet-journal.txt, trace)

## Failure Leg **supply** (harness leg id) — UI-reported leg **control-plane** — went red during the `own-vps` gateway deploy, immediately after pairing succeeded: journey leg "control-plane" went red: founding: gateway deploy: founding: probe ourcloud-control-plane.service on the gateway: clan: UnitActive: no deploy target for node-req-0001 — the node's SSH target is unknown (`artifacts/legs.json`, leg `"supply"`, `"status": "red"`, same message; also rendered in the app UI per `error-context.md`: *"Paired — the server is enrolled as your community's gateway."* immediately followed by the same fault line.) ## This is NOT the known own-VPS carrier frontier `legs.json` carries no skip reasons here — every leg up to `supply` is green, including `enroll-activate`, and `founding-state.json` shows pairing completed cleanly: "gateway paired and approved as node node-req-0001 — probed 2 vCPU · 4 GB · 76 GB meets the minimum" "paired — the community name was aimed at the server before install, so the public reachability check is skipped; the gateway deploy begins" The pairing-never-flips frontier does not apply here — this run got past pairing and failed one step later, in the post-deploy liveness probe. ## Evidence the control-plane service itself is fine `logs/droplet-journal.txt` shows the guest's `ourcloud-control-plane.service` actually came up successfully at 00:11:05, after early restarts failing loud because the binary hadn't synced yet: Aug 12 00:11:05 gateway systemd[1]: Started ourcloud-control-plane.service. Aug 12 00:11:05 gateway ourcloud-control-plane-start[1728]: time=2026-08-12T00:11:05.246Z level=INFO msg="control-plane serving the OpenAPI API" component=control-plane addr=:8080 ... So the fault is not the service crashing on the box — it's the orchestrator on the *host* side failing to find an SSH target to run the liveness probe against. ## Root cause: ledger node-id used where the clan machine name is needed `state/clan-config/inventory.json` keys the deploy target by the clan machine name, **not** the ledger node id: "machines": { "gateway": { "deploy": { "targetHost": "root@209.38.19.20" }, ... } } But `founding-state.json`'s standup record shows the fault fired while the probe was looking up `"node-req-0001"` (the fleet ledger's node id) even though the same record carries `"clan_node": "gateway"` right next to it. `clan`'s `UnitActive` has nothing under that key, so it reports "no deploy target" / "the node's SSH target is unknown" — the target exists, just under a different key than the one being queried. ## Suspected layer: product Go orchestrator (`internal/founding`, `deploy.go`'s clan-facing calls) — not the harness and not infra. The droplet, DNS, and SSH all behaved correctly; only the host-side lookup used the wrong key. ## What plugging it needs `logs/healer-claude.out` shows this exact defect was already diagnosed and fixed inside this run's swarm, landed as commit `d68e840475b19d4881569cfe045d783373483835`: > deploy.go's clan-facing calls (applyControlPlane, UnitActive, RemoveNode) used the fleet ledger's node id (st.Node) instead of the clan inventory's own machine name (st.ClanNode, e.g. "gateway"), so the own-VPS/private-VM deploy silently skipped the real machine during apply and then failed loud on the #443 liveness probe with "no deploy target for node-req-0001"; added the same st.ClanNode-falls-back-to-st.Node lookup seed.go already uses at every clan-facing call site in deploy.go. Verification noted in the same log: `go test ./internal/founding/... ./internal/clan/...` passing, and `TestOwnVPS_CarrierDrivesConnectPointInstallSeedPairToHandoff` extended to assert `UnitActive` probes `"gateway"` and confirmed red without the fix, green with it. This run captured the pre-fix state. The plug is: confirm commit `d68e840` (or the equivalent fix, if this rehearsal built from a branch that doesn't yet have it) is merged, then re-drive to confirm the `supply`/`control-plane` leg goes green. drive `20260812T000306Z` red at `supply`: `journey leg "control-plane" went red: founding: gateway deploy: founding: probe ourcloud-control-plane.service on the gateway: clan: UnitActive: no deploy target for node-req-N — the node's SSH targ` evidence: `test-results/…/20260812T000306Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) <!-- rehearsal-sig: 404124947736 -->
Author
Owner

swarm-claim host=matou-dev-server-01 run=4844
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=4844 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

close-report for #457 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 457,
  "status": "success",
  "commits": [
    "d4ef178"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/founding/deploy.go",
    "internal/founding/ownvpspath_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/founding/... ./internal/clan/...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Confirm the st.ClanNode fix is present at every clan-facing call site in deploy.go": "deploy.go now seeds clanNode := st.ClanNode (falls back to clan.NodeID(st.Node)) and uses it at applyControlPlane, the UnitActive liveness probe, and Recover's RemoveNode",
    "The supply/control-plane leg goes green — the probe hits the clan machine name not the ledger id": "TestOwnVPS_CarrierDrivesConnectPointInstallSeedPairToHandoff extended to assert the UnitActive probe hits st.ClanNode (\"gateway\"), NOT st.Node (\"node-req-0001\"); FAILs at ownvpspath_test.go with the node-req-0001 message before the fix, passes after; full go test ./internal/founding/... ./internal/clan/... green"
  },
  "summary": "deploy.go's clan-facing calls now key the own-VPS gateway deploy by the clan inventory machine name (st.ClanNode, \"gateway\") instead of the fleet ledger id (st.Node), plugging the supply/control-plane red where UnitActive found \"no deploy target for node-req-0001\".",
  "reason": "",
  "blockers": []
}
**close-report** for #457 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 457, "status": "success", "commits": [ "d4ef178" ], "changed_files": [ "STATUS.md", "internal/founding/deploy.go", "internal/founding/ownvpspath_test.go" ], "tests": [ { "command": "go test ./internal/founding/... ./internal/clan/...", "exit_code": 0 } ], "criteria": { "Confirm the st.ClanNode fix is present at every clan-facing call site in deploy.go": "deploy.go now seeds clanNode := st.ClanNode (falls back to clan.NodeID(st.Node)) and uses it at applyControlPlane, the UnitActive liveness probe, and Recover's RemoveNode", "The supply/control-plane leg goes green — the probe hits the clan machine name not the ledger id": "TestOwnVPS_CarrierDrivesConnectPointInstallSeedPairToHandoff extended to assert the UnitActive probe hits st.ClanNode (\"gateway\"), NOT st.Node (\"node-req-0001\"); FAILs at ownvpspath_test.go with the node-req-0001 message before the fix, passes after; full go test ./internal/founding/... ./internal/clan/... green" }, "summary": "deploy.go's clan-facing calls now key the own-VPS gateway deploy by the clan inventory machine name (st.ClanNode, \"gateway\") instead of the fleet ledger id (st.Node), plugging the supply/control-plane red where UnitActive found \"no deploy target for node-req-0001\".", "reason": "", "blockers": [] } ``` </details>
ben closed this issue 2026-08-12 00:36:57 +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#457
No description provided.