Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare dappmanager for multi-service nimbus client #2014

Merged
merged 17 commits into from
Sep 9, 2024

Conversation

dappnodedev
Copy link
Contributor

We are going to migrate from monoservice nimbus client to a new version that includes:

  1. beacon-chain
  2. validator
  3. beacon-validator --> This is a proxy that forwards request following this pattern:
req to beacon-validator:4500 ----------> beacon-chain:3500
req to beacon-validator:3500 ----------> validator: 3500

This PR removes logic related to beacon-validator service

It is important to design a proper migration strategy, as publishing a new Dappmanager version including this changes will cause the previous versions of Nimbus client to fail if selected in the Stakers tab

Copy link

github-actions bot commented Aug 16, 2024

Copy link

github-actions bot commented Aug 16, 2024

Dappnode bot has built and pinned the built packages to an IPFS node, for commit: 7b9b8cd

This is a development version and should only be installed for testing purposes.

  1. Package dappmanager.dnp.dappnode.eth

Install link

Hash: /ipfs/QmTTTWpESs4U3zrzSfAHKwVNkqJVPefZ8osNWYkyD78GgM

(by dappnodebot/build-action)

@dappnodedev dappnodedev force-pushed the feature/migrate-nimbus-to-2-services branch from e8f2ed5 to 613f974 Compare September 4, 2024 08:30
@github-actions github-actions bot temporarily deployed to commit September 4, 2024 08:39 Inactive
@github-actions github-actions bot temporarily deployed to commit September 4, 2024 08:44 Inactive
} else {
// Lighthouse, Teku and Prysm use 3500
// Nimbus uses 4500 because it is a monoservice and the validator API is using that port
if (dnpName.includes("nimbus")) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All production Nimbus clients have their driver defined like this:

  "chain": {
    "driver": "ethereum-beacon-chain",
    "serviceName": "beacon-validator",
    "portNumber": 4500
  },

So it is not necessary to consider this condition. Also, once nimbus package is published from https://github.com/dappnode/DAppNodePackage-nimbus-generic , it will have 2 services that will behave the same as the rest of the clients

@github-actions github-actions bot temporarily deployed to commit September 4, 2024 12:07 Inactive
},
environment: {
// TODO: Remove once Nimbus is split into 2 services
[beaconValidatorServiceName]: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is okay to include it in all cases, because the applyUserSettings function will only take into account the existing services in the compose of the package to install/start:
image

@dappnodedev dappnodedev marked this pull request as ready for review September 4, 2024 13:41
@dappnodedev dappnodedev requested a review from a team as a code owner September 4, 2024 13:41
@github-actions github-actions bot temporarily deployed to commit September 4, 2024 13:45 Inactive
@github-actions github-actions bot temporarily deployed to commit September 4, 2024 13:50 Inactive
@github-actions github-actions bot temporarily deployed to commit September 4, 2024 14:51 Inactive
@github-actions github-actions bot temporarily deployed to commit September 4, 2024 15:54 Inactive
@github-actions github-actions bot temporarily deployed to commit September 5, 2024 11:22 Inactive
@github-actions github-actions bot temporarily deployed to commit September 5, 2024 12:30 Inactive
@github-actions github-actions bot temporarily deployed to commit September 5, 2024 15:07 Inactive
@github-actions github-actions bot temporarily deployed to commit September 5, 2024 15:35 Inactive
@github-actions github-actions bot temporarily deployed to commit September 6, 2024 14:43 Inactive
@github-actions github-actions bot temporarily deployed to commit September 9, 2024 09:49 Inactive
@pablomendezroyo pablomendezroyo merged commit 081c80c into develop Sep 9, 2024
7 of 8 checks passed
@pablomendezroyo pablomendezroyo deleted the feature/migrate-nimbus-to-2-services branch September 9, 2024 10:06
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.

2 participants