From 8d5d5c0f3bdd841ea25f1e77900550a9085614df Mon Sep 17 00:00:00 2001 From: operator-main Date: Sun, 4 Oct 2026 18:21:47 +0000 Subject: [PATCH] Unify CDP relay ports: pin registry ports in netvm-names.sh netvm-node-up.sh was starting the CDP relay with the hash-derived CDP_PORT while cdp-relay-watchdog.sh pinned muse->9410, pip->9420, 646->9430, opm->9440. Since netvm-chrome.sh calls netvm-node-up.sh on every browser relaunch, each restart spawned a wrong-port zombie relay (9353, 10355, 10239...). The pinning now lives in netvm_names() itself, making it the single source of truth for all consumers (node-up, chrome, cdp, accounts, watchdog). CDP_PORT_OVERRIDE still takes precedence for future nodes. Session: sidechat/chromebox-ops --- bin/netvm-names.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bin/netvm-names.sh b/bin/netvm-names.sh index f00e490..00ba8c7 100755 --- a/bin/netvm-names.sh +++ b/bin/netvm-names.sh @@ -13,5 +13,15 @@ netvm_names() { # (9410, 9420, ...) instead of the hash-derived default. # Unset = previous behavior. CDP_PORT=${CDP_PORT_OVERRIDE:-$(( 9222 + 0x${_tag:4:3} % 2000 ))} + # Pinned registry ports: single source of truth for the fleet. + # (Was previously duplicated in cdp-relay-watchdog.sh relay_target(); + # moved here 2026-10-04 so netvm-node-up.sh stops spawning wrong-port + # zombie relays on every browser relaunch.) + case "$NODE" in + muse) CDP_PORT=9410 ;; + pip) CDP_PORT=9420 ;; + 646) CDP_PORT=9430 ;; + opm) CDP_PORT=9440 ;; + esac GW="10.201.${_idx}.1"; PEER_IP="10.201.${_idx}.2"; SUB="10.201.${_idx}.0/30" }