Repository navigation
test: a real moip-toolkit node as a container, for trying moipctl without hardware - #3
Merged
Merged
Conversation
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>
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
test/nodebuilds a real moip-toolkit node into a container: the Go server and the Rust engine from the pinnedexternal/moip-toolkitsubmodule, plus avahi-daemon somoip webadvertises_moip._tcpexactly as on utone-linux (over D-Bus).node-image.ymlpublishes it asghcr.io/technotut/moipctl-node-test(public);test/node/pod.yamlruns 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/infoand 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
connected: truewith the full state, and relayed the node's own errors (RX is not running,No signage images uploaded yet).node-imagebuilds and pushes (tagstest-node-image,sha-0d9f981from this branch).main, throwaway namespace): two of these pods on VLAN 20 and 42 were found by the scouts of moipctl 0.1.0, withsourceav/entand the right addresses.After merging,
:mainexists, which is the tagpod.yamluses.🤖 Generated with Claude Code