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

feat(pd): support real addrs in testnet generate #2916

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

conorsch
Copy link
Contributor

Removed the default RFC1918 addresses from the pd testnet generate logic. Added two new options:

  • --peer-address-template
  • --external-addresses

The goal is to allow a node operator to pass in public IPv4 address information at the time of config generation, so the emitted config files are valid without further munging, particularly with respect to the external_address Tendermint advertises for its P2P service.

This change unblocks a leaner deployment pipeline, where we actually use the results of the pd testnet generate output, as intended.

Also: fix(pd) support urls in testnet join

We were inadvertently dropping paths on URLs by prepending / to Url.join args, which caused the join operation to be performed on the base domain, ignoring any path. We didn't notice this because all our services had been on their own subdomains.

@conorsch conorsch force-pushed the pd-validator-refactor branch from a149dd7 to 1df1bd1 Compare August 14, 2023 17:44
@conorsch conorsch force-pushed the pd-validator-refactor branch from 1df1bd1 to 3583780 Compare August 15, 2023 00:34
@conorsch conorsch force-pushed the pd-validator-refactor branch from 3583780 to f016d94 Compare August 15, 2023 15:21
@conorsch conorsch force-pushed the pd-validator-refactor branch from f016d94 to b539fff Compare August 15, 2023 15:37
@conorsch conorsch marked this pull request as ready for review August 15, 2023 15:37
@conorsch conorsch temporarily deployed to smoke-test August 15, 2023 15:37 — with GitHub Actions Inactive
@conorsch conorsch requested a review from zbuc August 15, 2023 15:57
Removed the default RFC1918 addresses from the `pd testnet generate` logic.
Added two new options:

  * --peer-address-template
  * --external-addresses

The goal is to allow a node operator to pass in public IPv4 address
information at the time of config generation, so the emitted config
files are valid without further munging, particularly with respect
to the `external_address` Tendermint advertises for its P2P service.

This change unblocks a leaner deployment pipeline, where we actually
use the results of the `pd testnet generate` output, as intended.

Also: fix(pd) support urls in testnet join

We were inadvertently dropping paths on URLs by prepending `/` to
`Url.join` args, which caused the join operation to be performed on the
base domain, ignoring any path. We didn't notice this because all our
services had been on their own subdomains.
@conorsch conorsch force-pushed the pd-validator-refactor branch from b539fff to 0fb560e Compare August 15, 2023 17:12
@conorsch conorsch temporarily deployed to smoke-test August 15, 2023 17:12 — with GitHub Actions Inactive
@conorsch
Copy link
Contributor Author

I've done some manual testing of the deploy logic, against an ad-hoc devnet, to ensure that these changes will work fine with existing deployments. These changes unblock simplifying the CI logic, but those changes will come in separately, in order to keep things rolling smoothly, and to aid in review.

Copy link
Contributor

@zbuc zbuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@conorsch conorsch merged commit d37e934 into main Aug 16, 2023
@conorsch conorsch deleted the pd-validator-refactor branch August 16, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants