Skip to content

ansible: stop and mask rpcbind on all hosts - #51

Open
parithosh wants to merge 1 commit into
masterfrom
pari/perf-devnet-3-2026-11
Open

parithosh wants to merge 1 commit into
masterfrom
pari/perf-devnet-3-2026-11

Conversation

@parithosh

Copy link
Copy Markdown
Member

Adds a disable_rpcbind role to the base host play (tags init-server, disable_rpcbind). It stops and masks rpcbind.service and rpcbind.socket. rpcbind comes with nfs-common on Debian and listens on port 111 on all interfaces; nothing on these hosts uses NFS/RPC.

Already applied to devnet-3 (bootnode-1, lighthouse-nethermind-1, lighthouse-reth-1, teku-erigon-1), along with an OS patch and reboot (kernel 6.1.0-28 → 6.1.0-56). After it: rpcbind inactive and nothing listening on :111. prysm-geth-1 and nimbus-besu-1 are unreachable and were not touched.

devnet-3 state: the chain has been stalled for ~5 months (head slot 880,320 vs a current slot of ~2,008,241). Both Lighthouse beacons (lighthouse-reth-1, lighthouse-nethermind-1) refuse to start with "head state is outside the weak subjectivity period". On lighthouse-reth-1 this predates this change. lighthouse-nethermind-1 hit it after its image was re-pulled; its DB was migrated back to schema v29, with a backup at /data/lighthouse/beacon.bak-before-downgrade-20261124. teku-erigon-1 and bootnode-1 came back after the reboot.

@redpandabot redpandabot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds a small disable_rpcbind role to the base host play (tags init-server, disable_rpcbind) that stops and masks rpcbind.socket and rpcbind.service, guarded on rpcbind.service being present in ansible_facts.services. The guard, socket-before-service ordering and the systemd module's mask/disable/stop sequence are all correct and idempotent on repeat runs; the devnet-3 weak-subjectivity stalls described in the description are unrelated to this change. Nothing to flag.


Reviewed 2 changed file(s) @ a519330c — no blocking issues found.
"The bottleneck is always at the top of the bottle." — Peter Drucker

@redpandabot

redpandabot Bot commented Nov 24, 2026

Copy link
Copy Markdown

CI failed @ a519330c

One failed job: Ansible lint / ansible-lint. The setup step fails because the pinned asdf setup action clones asdf master, which no longer provides bin/asdf, so every asdf command in setup.sh exits 127. The PR only changes ansible/playbook.yaml and ansible/roles/disable_rpcbind/tasks/main.yaml, and the same job already fails on master at the base commit.

  • Ansible lint / ansible-lint — pre-existing — The composite setup action uses asdf-vm/actions@05e0d2e (v3.0.2), which clones asdf master into ~/.asdf and adds ~/.asdf/bin to PATH. Current asdf master is the Go rewrite and has no bin/asdf, so asdf is not found. The first real error is ./setup.sh: line 4: asdf: command not found, repeated for every asdf command, and asdf install at setup.sh:17 exits 127. This PR only adds ansible/roles/disable_rpcbind/tasks/main.yaml and a role entry in ansible/playbook.yaml, touching none of setup.sh, the setup action, or the workflow. The same job already fails identically on master at the PR base commit c783a65 (run 45406004348). (.github/actions/setup/action.yaml:7) — Update the setup action in .github/actions/setup/action.yaml:7 to asdf-vm/actions/setup@v4.0.1, or pin asdf_branch to a release that still ships bin/asdf such as v0.16.7; then rebase/re-run this PR.

Diagnosed Ansible lint @ a519330c
"The bottleneck is always at the top of the bottle." — Peter Drucker

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