Skip to content

Conversation

@ch4r10t33r
Copy link
Contributor

Summary

  • Add automatic config file sync in deploy-nodes.yml before deployment to ensure remote hosts have up-to-date configuration
  • Delegate all yq commands to localhost in roles and deploy-single-node.yml to fix "node not found" errors when remote config is stale
  • Make data directory cleanup conditional in spin-node.sh to prevent sudo password prompts for local deployments

Changes

deploy-nodes.yml:

  • Syncs validator-config.yaml, node key files, and essential genesis configs before deployment
  • Syncs hash-sig-keys directory (for qlean nodes)

All client roles (zeam, ream, qlean, lantern, lighthouse, grandine, ethlambda):

  • Added delegate_to: localhost to yq commands that read from validator-config.yaml
  • Uses local genesis path for lookups ensuring authoritative configuration is used

deploy-single-node.yml:

  • Delegated node existence check to localhost

spin-node.sh:

  • Made rm -rf cleanup conditional on cleanData and dockerWithSudo flags

Test plan

  • Run Ansible deployment with --node all and verify all nodes deploy successfully
  • Verify config files are synced to remote hosts before deployment
  • Test local deployment mode still works without sudo prompts

- Add automatic config file sync in deploy-nodes.yml before deployment
  - Syncs validator-config.yaml, node key files, genesis configs
  - Syncs hash-sig-keys directory for qlean nodes
- Delegate all yq commands to localhost in roles and deploy-single-node.yml
  - Fixes "node not found" errors when remote config is stale
  - Ensures lookups use the authoritative local configuration
- Make data directory cleanup conditional in spin-node.sh
  - Prevents sudo password prompts for local deployments
@ch4r10t33r ch4r10t33r requested a review from g11tech January 27, 2026 18:10
g11tech
g11tech previously approved these changes Jan 27, 2026
Update grandine docker image from sifrai/lean:unstable to sifrai/lean:devnet-2
@ch4r10t33r ch4r10t33r merged commit 7437059 into main Jan 29, 2026
@ch4r10t33r ch4r10t33r deleted the devnet2-fix branch January 29, 2026 09:23
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.

3 participants