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

Improve error message when verifying enode syntax with xdns-enabled #2569

Closed
jlcs-es opened this issue Jul 21, 2021 · 5 comments
Closed

Improve error message when verifying enode syntax with xdns-enabled #2569

jlcs-es opened this issue Jul 21, 2021 · 5 comments
Assignees
Labels
good first issue Good for newcomers non mainnet (private networks) not related to mainnet features - covers privacy, permissioning, IBFT2, QBFT

Comments

@jlcs-es
Copy link

jlcs-es commented Jul 21, 2021

Description

When deploying multiples nodes on private network, the same BESU_BOOTNODES env variable is set with all the enodes.
This is ok as a node will detect its own enode.

Now, in a private networking environment such a Kubernetes, the option BESU_XDNS_ENABLED is set to true so we can point to the Pods hostnames instead of IPs that will change.

Internally, Besu seems to retrieve from DNS the IP and then substitute it in the enode string.
If any of the nodes listed on the BESU_BOOTNODES option is not yet ready, the Kubernetes DNS will not report any IP, and then the Besu command will fail with this message:

Invalid enode URL syntax. Enode URL should have the following format 'enode://<node_id>@<ip>:<listening_port>[?discport=<discovery_port>]'.  Invalid ip address.

If the option BESU_XDNS_UPDATE_ENABLED is also enabled, Besu does not substitute any IP in the enode string and passes the boot up validations.

Expected behavior:

If BESU_XDNS_ENABLED is set to true, but BESU_XDNS_UPDATE_ENABLED isn't, the error message displayed should be more clear on what is actually happening.

Example:

Invalid ip address or DNS query resolved an invalid ip.

Versions

  • Software version: besu/v21.7.1/linux-x86_64/adoptopenjdk-java-11 (docker latest tag at the time of writting).
@matkt
Copy link
Contributor

matkt commented Jul 26, 2021

thanks for your feedback we will try to improve the message in this case

@macfarla macfarla added the good first issue Good for newcomers label Aug 26, 2021
@iamhsk iamhsk added the TeamChupa GH issues worked on by Chupacabara Team label Jul 14, 2022
@non-fungible-nelson
Copy link
Contributor

@daniellehrner easy logging change?

@non-fungible-nelson non-fungible-nelson added non mainnet (private networks) not related to mainnet features - covers privacy, permissioning, IBFT2, QBFT and removed TeamChupa GH issues worked on by Chupacabara Team labels Apr 4, 2023
@NickSneo NickSneo self-assigned this Apr 14, 2023
@NickSneo
Copy link
Contributor

@non-fungible-nelson @macfarla Shall we close this issue?

@non-fungible-nelson
Copy link
Contributor

non-fungible-nelson commented Apr 19, 2023

all you Nick! You handled the changes, you should get the satisfaction ;)

@NickSneo
Copy link
Contributor

Closing issue, Fixes merged - #5346

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers non mainnet (private networks) not related to mainnet features - covers privacy, permissioning, IBFT2, QBFT
Projects
None yet
Development

No branches or pull requests

6 participants