-
Notifications
You must be signed in to change notification settings - Fork 214
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 should panic in PoST supervised mode if service doesn't connect #5267
Comments
I have two ideas for improving the UX.
|
A PR with this change was already merged: #5259 the problem is a user might not want to use the private service but instead the TLS service (hybrid PoST setup: supervised + remote). We can say we do not want to support hybrid setup which would make things easier on our side but may interfere with plans by users...
Theoretically |
Opened spacemeshos/post-rs#151 for the |
## Motivation Part of #5267 Closes #5260 This changes the node configuration to not allow an operator to decide any more which GRPC handlers are exposed on which endpoint. Instead it hard codes the following: - public: GlobalState, Mesh, Transaction, Node, Activation - private: Admin, Debug, Smesher, Post - mTLS: Post Additionally it removes all configuration options for the PoST service and sets them automatically if the node is started with `smeshing-start=true` via the command line or via the config. ## Changes - remove ability to set which handlers are available on which endpoint and hardcode them instead - remove workaround code added in #5259 that was necessary when the operator could still configure the supervised post service - supervised post service binary is now always expected to be in the same directory as the node binary - the supervised post service is now instructed to always connect to the node via the private listener - remote post services can connect via the TLS listener ## Test Plan updated existing tests ## TODO <!-- This section should be removed when all items are complete --> - [x] Explain motivation or link existing issue(s) - [x] Test changes and document test plan - [x] Update documentation as needed - [x] Update [changelog](../CHANGELOG.md) as needed
Description
There are a few ways in which a node can be configured to start in PoST supervised mode but fail to start smeshing. The most common ones are:
grpc-private-services
/grpc-tls-services
are missingpost
handler and therefor do not accept connections from the post servicenode-address
is not the correct address, i.e. it doesn't match the host + port defined bygrpc-private-listener
/grpc-tls-listener
This will result in the post service starting up and trying to connect every 5 seconds, but failing to do so.
With #5259 a possibly incorrect config is detected and logged by the node during startup. Additionally if the configuration causes the PoST service to be unable to connect to the node, the node should panic and shut down so a misconfigured setup doesn't go unnoticed by the user.
Acceptance criteria
The text was updated successfully, but these errors were encountered: