-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
cli: init
fails with IPv6 literal
#33008
Comments
@janartodesk thank you for your report. I'm not sure this is relevant, but it looks like you're using I don't think this is the root cause though, since I get the following error if I try it:
|
@bdarnell or @mberhault, this looks like one of your areas of expertise. |
init
fails with IPv6 literal
@tbg This is a client-side command (the server side is correctly using @janartodesk Thanks for the report, this looks like a bug in our address parsing that affects As a workaround, if you can set up DNS names for these IPv6 addresses, that should work. |
Oh yeah, didn't think of that. Thanks, guys! |
@knz are you interested in doing something about this one? |
Sounds like a plan. |
37942: sql: Adding support for show indexes from database command r=rohany a=rohany As requested in #37270, support for a show indexes from database command would be helpful. This PR includes support for the command in the parser. Future PR's will implement the functionality of the parsed results. 37977: cli: fix use of IPv6 addresses with RPC client commands r=knz a=knz Fixes #33008. (This was actually a regression of my doing, back from #28373. Didn't pick it up back then because we didn't have a test.) Release note (bug fix): the `cockroach` command line utilities that internally use a RPC connection (e.g. `cockroach quit`, `cockroach init`, etc) again properly support passing an IPv6 address literal via the `--host` argument. Co-authored-by: Rohan Yadav <[email protected]> Co-authored-by: Raphael 'kena' Poss <[email protected]>
Describe the problem
Attempting to initialize IPv6 only cluster fails with address parsing error:
To Reproduce
Start a cluster binding to IPv6 addresses and attempt to initialize it.
Additional data
We use in-house PKI for managing cluster's certificates.
Starting and initializing the cluster on IPv4 addresses (using our own TLS certificates) works as expected:
There are no IPv6 connectivity issues between hosts. Initializing the cluster on IPv4 then reconfiguring and restarting the already initialized cluster on IPv6 managed to bring it up.
All the IP addresses in question are public and globally routable, replaced in the excerpts with pseudo random private addresses.
Environment:
cockroach init
Servers are started using following configuration:
The text was updated successfully, but these errors were encountered: