-
Notifications
You must be signed in to change notification settings - Fork 147
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
feat: node starts without checking internal hostname #12112
feat: node starts without checking internal hostname #12112
Conversation
Signed-off-by: Edward Wertz <edward@swirldslabs.com>
Signed-off-by: Edward Wertz <edward@swirldslabs.com>
platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/CryptoStatic.java
Outdated
Show resolved
Hide resolved
platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/util/BootstrapUtils.java
Outdated
Show resolved
Hide resolved
Node: Unit Test Results 2 266 files +1 1 errors 2 265 suites +1 3h 51m 16s ⏱️ + 1h 30m 54s For more details on these parsing errors, see this check. Results for commit a2a49cc. ± Comparison against base commit 3d09dbf. ♻️ This comment has been updated with latest results. |
Signed-off-by: Edward Wertz <edward@swirldslabs.com>
Lots of work to do before this can be merged. This PR removes a capability without introducing the capability's replacement. JRS and other tools such as NMT will need to be re-worked to support either (1) command line identification of which node to start or (2) setting of an environment variable which indicates which node to start. |
.../swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/EnhancedKeyStoreLoader.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, although this should not be merged until all downstream dependents give the thumbs up.
Signed-off-by: Edward Wertz <edward@swirldslabs.com>
4ff5141
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
…twork # Conflicts: # hedera-node/hedera-app/src/main/java/com/hedera/node/app/info/DiskStartupNetworks.java # platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/crypto/EnhancedKeyStoreLoader.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good from services, aside from some deleted tests. There are also a couple of cosmetic changes suggested for posterity
hedera-node/hedera-app/src/main/java/com/hedera/node/app/ServicesMain.java
Outdated
Show resolved
Hide resolved
hedera-node/hedera-app/src/main/java/com/hedera/node/app/info/DiskStartupNetworks.java
Outdated
Show resolved
Hide resolved
hedera-node/hedera-app/src/test/java/com/hedera/node/app/ServicesMainTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like @mhess-swl's suggested comments but otherwise LGTM, tyvm @edward-swirldslabs !
…cesMain.java Co-authored-by: Matt Hess <matt.hess@swirldslabs.com> Signed-off-by: Edward Wertz <123979964+edward-swirldslabs@users.noreply.github.com>
29ba5c2
…DiskStartupNetworks.java Co-authored-by: Matt Hess <matt.hess@swirldslabs.com> Signed-off-by: Edward Wertz <123979964+edward-swirldslabs@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, ty @edward-swirldslabs !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review and approve files associated to devops-ci
ownership.
Must not merge until https://github.com/swirlds/swirlds-platform-regression/pull/4032 is merged
Description:
This PR removes the use of the internal ip address for determining which nodes to start. The nodes to start locally must be specified on the command line or through environment variable.
Browser
starts all nodes locally.ServicesMain
logs an error and exits.Browser
starts just the nodes specified locallyServicesMain
exits with an error indicating exactly 1 node must be started.The methods for loading the cryptography now take parameters indicating which nodes will be started locally.
CLI: comma separated list at end of java command.
Environment Variable: comma separated list for the
nodesToRun
environment variable.!!!! This PR impacts all deployments of nodes, from JRS, to SOLO, to DevOps managed test and production networks.
I've removed
ServicesMainTest.java
as it only tested the behavior of mismatched addresses. The logic has significantly changed. These unit tests were actually misbehaving. legacyConfigProperties was returning a null address book instead of an empty address book. All code paths are used in testing and production and will fail critically if the code paths are not working as expected. Maintaining complicated static mocked scenarios is not necessary.Related issue(s):
Fixes #11751
Testing
This was manually tested locally with the Browser and verified to work with both CLI and ENV methods. The same logic is at play in ServicesMain. The proof is when the code is executed in testing environments and it works.
Checklist
Possible Impacts?
Sign Offs