Skip to content

own-cluster rehearsal polish: no-RDMA nodes in cluster probe, one line per lease-probe finding, own ssh nodes at $0 - #917

Merged
michaellchung merged 2 commits into
mainfrom
own/oc-ab-rehearsal-polish
Nov 26, 2026
Merged

michaellchung merged 2 commits into
mainfrom
own/oc-ab-rehearsal-polish

Conversation

@michaellchung

@michaellchung michaellchung commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Small fixes from the own-cluster cloud VM rehearsal (phase A), with the REV-904b review fixes (M1, M2, L). Items whose fix needs a file of an open PR are left for a follow-up.

Changes

  1. cluster probe, nodes that declare no RDMA fabric (yeto/launch/fabric_groups.py). A tcp node was first said to "get no group", then reported as fabric unavailable (with the ib_write_bw noise of its pairs) and the probe exited 1. group_nodes now keeps such a node out of the pair evaluation and reports it in no_rdma:
    • healthy: no RDMA fabric: <node>: fabric tcp in the inventory: no group, single-node islands only (fabric_group unavailable); next: if the node has IB / RoCE HCAs, set its fabric to ib or roce in the inventory and probe again; otherwise nothing to do (yeto preflight checks the node itself). Not a probe failure: exit 0 when the RDMA nodes are clean.
    • failed node checks (image pull, container, host probe, unreachable ssh; not its IB / RoCE checks, not a clock skew alone): the same line with node checks FAILED: <check>: <detail>; next: fix the node (yeto preflight on it names the fix) and probe again, and the probe exits 1 (as on main, where the node was fabric unavailable with that reason). The JSON record gains no_rdma and no_rdma_failed.
    • --write still sets fabric_group: unavailable for such a node, as before.
    • hccs (Ascend's in-node interconnect) is not an RDMA fabric between nodes either and is treated the same way (comment in the code).
    • A node that declares ib / roce and runs NCCL over sockets is still fabric unavailable.
  2. node lease takeover probe (yeto/launch/node_lease.py): still_runs_script printed one finding up to four times (docker's one daemon listed by the user's and the sudo -n view; a labelled yeto-<run>- container matched by label and by name). Each finding is now printed once. parse_probe already deduplicated, so takeover decisions are unchanged.
  3. cost of own ssh trainer nodes (yeto/launch/ssh_trainer_ledger.py, yeto/cost/billing.py, docs/COST_GUARD.md): an ssh_trainer ledger row now counts its nodes with and without price_per_card_hour (priced_nodes, unpriced_nodes).
    • No node declares a price: the operator's own machines, priced at $0 (note own SSH nodes (no price_per_card_hour): $0), no cost_unpriced. This matches the ssh: sampler pool (dry-runs at $0) and the capabilities table (price_per_card_hour ... 0 by default).
    • Only some nodes declare a price: unpriced (N of M SSH nodes without price_per_card_hour) and the cost guard warns, as on main. A forgotten price is never read as $0.
    • A row without the counts (a ledger written before this change): unpriced, as on main.

Visible behavior changes

  • A trainer incarnation on own hardware (no node of it declares price_per_card_hour, i.e. a trainer rate of $0 per hour) no longer raises cost_unpriced; it counts as $0 in the spend.
  • A node declared tcp that could in fact run IB is no longer grouped with the ib nodes by the probe (main measured it and could put it in a group); the probe now tells the operator to declare ib / roce for it and probe again.
  • yeto cluster probe exits 0 (was 1) when the only finding is healthy nodes that declare no RDMA fabric.

Tests

New tests (each fails on origin/main unless noted):

  • tests/test_fabric_groups.py: test_a_tcp_node_is_no_group_and_no_probe_failure_with_a_next_step, test_a_probe_of_tcp_nodes_only_says_so_for_every_node_and_exits_0, test_a_tcp_node_that_fails_its_node_checks_fails_the_probe_with_the_reason (refused pull, unreachable node), test_declared_roce_nodes_are_grouped_and_never_no_rdma, test_a_declared_ib_node_that_runs_over_sockets_stays_fabric_unavailable
  • tests/test_node_lease.py: test_the_probe_prints_each_finding_once (runs the real script under bash with fake docker / sudo)
  • tests/test_ssh_trainer_storage.py: test_cost_prices_an_incarnation_by_the_declared_price_or_at_zero_on_own_nodes (was ..._or_leaves_it_unpriced), test_the_cost_guard_does_not_warn_about_own_ssh_nodes, test_a_partly_priced_incarnation_stays_unpriced_and_the_guard_warns (5 nodes at $3 per card hour + 1 without a price), test_a_row_without_node_counts_stays_unpriced (passes on main too: it pins main's behavior for older ledgers)

Mutation tests: 18 mutants, all killed. Probe: tcp nodes not filtered out of the pairs; left out of assignment(); next-step hint dropped; tcp treated as RDMA; roce not treated as RDMA; no_rdma_failed ignored by clean; node checks not collected; unreachable ssh not collected; clock-skew ssh counted; failure line without its reasons. Lease probe: dedupe guard removed; dedupe never records. Cost: own-node rate back to None; own-node note dropped; partly priced read as $0; priced_nodes not counted; row without counts read as $0; any row without a price read as $0.

Gates

  • customer dry-run diff: none (examples/k31 run up --dry-run agentic-262k and baremetal-b300-262k incl. preflight, and the pool --dry-run, normalized, line by line vs origin/main; trainer launch --dry-run rc=0 in each case on both sides; only the offline model_pull / sandbox status checks fail, on both sides)
  • goldens: 52 passed (main 52 passed); no golden file changed
  • full suite: 4 shards, one process each: shard 0: 4596 passed; shard 1: 4593 passed; shard 2: 4576 passed; shard 3: 4614 passed (0 failed)

Left for later

🤖 Generated with Claude Code

michaellchung and others added 2 commits November 27, 2026 03:51
…ase-probe finding, own ssh nodes at $0

- cluster probe: a node whose inventory declares no RDMA fabric (tcp) is reported
  as "no RDMA fabric" with a next step, not "fabric unavailable"; it no longer makes
  the probe exit 1 (--write still sets fabric_group unavailable). The JSON record
  gains "no_rdma".
- node lease takeover probe: each finding is printed once (docker's one daemon
  seen by the user's and the sudo view, a labelled yeto-<run>- container matched
  by label and name printed the same line up to four times).
- cost: an ssh_trainer row of nodes without price_per_card_hour is the
  operator's own machines: $0, not unpriced, so no cost_unpriced warning per
  incarnation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ode's failed node checks fail the probe

- ssh_trainer ledger rows count their nodes with and without price_per_card_hour.
  $0 only when no node declares a price (own machines); when only some do, the
  row stays unpriced and the cost guard warns (cost_unpriced). A row without the
  counts (an older ledger) stays unpriced as on main.
- cluster probe: a node declaring no RDMA fabric still reports its failed node
  checks (image pull, container, host probe, unreachable ssh; not its IB checks,
  not a clock skew alone) with a fix-the-node next step, and fails the probe
  (exit 1, JSON "no_rdma_failed"). hccs is documented as no RDMA fabric.
- tests: partly priced rows, rows without counts, a tcp node whose pull is refused
  or that is unreachable, declared roce nodes are grouped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@michaellchung
michaellchung force-pushed the own/oc-ab-rehearsal-polish branch from 46f6334 to f67da96 Compare November 26, 2026 21:17
@michaellchung michaellchung changed the title own-cluster rehearsal polish: tcp nodes in cluster probe, one line per lease-probe finding, own ssh nodes at $0 own-cluster rehearsal polish: no-RDMA nodes in cluster probe, one line per lease-probe finding, own ssh nodes at $0 Nov 26, 2026
@michaellchung
michaellchung merged commit 757a5ea into main Nov 26, 2026
7 checks passed
@michaellchung
michaellchung deleted the own/oc-ab-rehearsal-polish branch November 26, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant