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

Node add stops working when you run account init before #308

Open
Tracked by #47
jeromy-cannon opened this issue May 16, 2024 · 9 comments · May be fixed by #365
Open
Tracked by #47

Node add stops working when you run account init before #308

jeromy-cannon opened this issue May 16, 2024 · 9 comments · May be fixed by #365
Assignees
Labels
Bug A error that causes the feature to behave differently than what was expected based on design docs P1 High priority issue. Required to be completed in the assigned milestone.

Comments

@jeromy-cannon
Copy link
Contributor

jeromy-cannon commented May 16, 2024

The network consensus nodes are configured to use a specific account ID to do the freeze transaction. Currently, Solo is using the treasury account 0.0.2. It needs to be updated to use the default freeze transaction account 0.0.58.

To recreate the issue:

  SOLO_CLUSTER_NAME=solo-e2e
  SOLO_NAMESPACE=solo-e2e
  SOLO_CLUSTER_SETUP_NAMESPACE=solo-e2e-cluster
  FST_CHARTS_DIR=~/source/full-stack-testing/charts
  kind delete cluster -n "${SOLO_CLUSTER_NAME}" || true
  kind create cluster -n "${SOLO_CLUSTER_NAME}" || return
  solo init -d ${FST_CHARTS_DIR} --namespace "${SOLO_NAMESPACE}" -i node0,node1,node2 -t v0.47.0 -s "${SOLO_CLUSTER_SETUP_NAMESPACE}" || return
  solo node keys --gossip-keys --tls-keys --key-format pem || return
  solo cluster setup  || return
  solo network deploy || return
  solo node setup || return
  solo node start || return
  solo account init || return
  solo node add -i node3 || return
@jeromy-cannon jeromy-cannon added Bug A error that causes the feature to behave differently than what was expected based on design docs Needs Triage Further development work cannot be done labels May 16, 2024
@JeffreyDallas
Copy link
Contributor

Have this node add feature ever worked ?
To my understanding, to adding new node to the network needs the following steps:

  1. update config.txt
  2. generate a upgrade package and update the special file 0.0.150
  3. send PrepPare upgrade transaction
  4. send FreezeUpgrade
  5. wait nodes freeze and restart nodes

In current node.mjs implementation, I did not any logic of step 2.

@jeromy-cannon
Copy link
Contributor Author

yes, that is technically not needed. we instead update the config file version, which is another way to trigger the upgrade per Michael Tinker.

This works normally because we don't run solo account init, so all accounts are using genesis key. But, when you run solo account init, each account gets its own key, and the check to validate that the correct account is running the freeze fails.

@JeffreyDallas JeffreyDallas self-assigned this May 21, 2024
@jeromy-cannon jeromy-cannon added P1 High priority issue. Required to be completed in the assigned milestone. and removed Needs Triage Further development work cannot be done labels May 29, 2024
@JeffreyDallas
Copy link
Contributor

With latest code on main branch,
the above commands no longer fail at waiting for freeze,
but failed at last step solo node add -i node3
while node3 stuck at OBSERVING status

swirlds.log

@JeffreyDallas
Copy link
Contributor

Get some hint from Austin, we need to also update version number during the upgrade test

@jeromy-cannon
Copy link
Contributor Author

jeromy-cannon commented Jun 4, 2024

we already update the version number in the application.properties as part of the node add.

@JeffreyDallas
Copy link
Contributor

After testing with hedera release v0.50.0,
I got the same SignedStateInvalidException as discussed in slack

@jeromy-cannon
Copy link
Contributor Author

where are you at on this? do you need any help or clarification? are you able to recreate the issue?

@JeffreyDallas
Copy link
Contributor

I believe it is facing the issue you have with #349.

@jeromy-cannon
Copy link
Contributor Author

if you use v0.49.0-alpha.2, the issue shouldn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A error that causes the feature to behave differently than what was expected based on design docs P1 High priority issue. Required to be completed in the assigned milestone.
Projects
Status: 🔖 Ready
Development

Successfully merging a pull request may close this issue.

2 participants