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

Add registry subcommand to verify if the node is properly registered #2508

Closed
tjanez opened this issue Jan 3, 2020 · 1 comment · Fixed by #2649
Closed

Add registry subcommand to verify if the node is properly registered #2508

tjanez opened this issue Jan 3, 2020 · 1 comment · Fixed by #2649
Labels
c:cli Category: command line interface s:good first issue Status: good for newcomers

Comments

@tjanez
Copy link
Member

tjanez commented Jan 3, 2020

SUMMARY

At the moment, instructions for verifying if a node is properly registered on the network are quite tedious and verbose.

Here is a copy from the current Node Operator Docs:

To ensure that your node is properly connected as a validator on the network,
you can check if you see the node's identity in the registry's node list.
Unfortunately, at this time this is a bit of a manual process.

Getting the Node's consensus_pub.pem Identity

cat /serverdir/node/consensus_pub.pem

This will look like:

-----BEGIN ED25519 PUBLIC KEY-----
s+vZ71qeZnlq0HmQSDBiWn2OKcy3fXOuPMu76/5GkUI=
-----END ED25519 PUBLIC KEY-----

You should search the registry's node list for this ID, e.g.
s+vZ71qeZnlq0HmQSDBiWn2OKcy3fXOuPMu76/5GkUI=, and set it as environment
variable:

NODE_CONSENSUS_ID="<NODE-CONSENSUS-ID>"

replacing <NODE_CONSENSUS_ID> with your node's consensus_pub.pem identity.

Searching for the Node's Identity

To check if the node is properly registered, run the following command:

oasis-node registry node list -v -a unix:/serverdir/node/internal.sock | grep $NODE_CONSENSUS_ID

If grep found your ID, then you're properly connected!

A registry node subcommand, e.g. registry node check-registered, would make this task a lot more convenient.

ISSUE TYPE
  • Feature Idea
@tjanez tjanez added s:good first issue Status: good for newcomers c:cli Category: command line interface labels Jan 3, 2020
@Yawning
Copy link
Contributor

Yawning commented Jan 6, 2020

This seems like bloat to me. There is a command to list currently registered nodes. There are multiple ways on any sensible system to search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:cli Category: command line interface s:good first issue Status: good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants