Skip to content

test: a real moip-toolkit node as a container, for trying moipctl without hardware - #3

Merged
dodolia907 merged 4 commits into
mainfrom
test/node-image
Nov 22, 2026
Merged

dodolia907 merged 4 commits into
mainfrom
test/node-image

Conversation

@dodolia907

Copy link
Copy Markdown
Member

What

test/node builds a real moip-toolkit node into a container: the Go server and the Rust engine from the pinned external/moip-toolkit submodule, plus avahi-daemon so moip web advertises _moip._tcp exactly as on utone-linux (over D-Bus). node-image.yml publishes it as ghcr.io/technotut/moipctl-node-test (public); test/node/pod.yaml runs one node on VLAN 20 and one on VLAN 42.

No NDI runtime is included (its licence does not allow redistributing it), so rx/tx/multiview fail in the engine. The API, the state stream, /api/node/info and the mDNS advertisement are the real thing, which is what moipctl needs.

Why

A hand-written fake node and an mDNS probe cannot find what a real avahi does. This image found that a single mDNS query is answered only about 70-80% of the time (fixed in #2), and it lets the controller, the scouts and the VLAN attachment be tried on the cluster without hardware.

Testing

  • Local (podman): a moipctl controller found the node over real mDNS, showed connected: true with the full state, and relayed the node's own errors (RX is not running, No signage images uploaded yet).
  • CI: node-image builds and pushes (tags test-node-image, sha-0d9f981 from this branch).
  • Cluster (TechnoTUT main, throwaway namespace): two of these pods on VLAN 20 and 42 were found by the scouts of moipctl 0.1.0, with source av / ent and the right addresses.

After merging, :main exists, which is the tag pod.yaml uses.

🤖 Generated with Claude Code

dodolia907 and others added 4 commits November 22, 2026 19:42
Builds the Go server and the Rust engine from the pinned submodule and
runs avahi-daemon next to them, so that `moip web` advertises _moip._tcp
as on utone-linux. No NDI runtime is included (not redistributable), so
only the control plane is real.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pushes ghcr.io/technotut/moipctl-node-test on main and on test/** branches.
pod.yaml runs one node on VLAN 20 and one on VLAN 42.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s its replies

A pod's default route is eth0, so when a controller reached the test node
through the router (source = the controller node's IP), the SYN arrived on
the VLAN interface but the reply left by eth0 and the handshake never
completed (SYN_RECV on the node). Give every non-eth0 interface its own
routing table with the VLAN's gateway (network address + 1), selected by the
interface's source address. Needs NET_ADMIN; utone-linux hosts, whose default
gateway is the router, do not have this problem.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dodolia907
dodolia907 merged commit 125c239 into main Nov 22, 2026
4 checks passed
@dodolia907

Copy link
Copy Markdown
Member Author

Merged (merge commit) under the owner's standing go-ahead to merge PRs as needed: the test node image and its workflow belong on main, so that ghcr.io/technotut/moipctl-node-test:main (the tag pod.yaml uses) exists.

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