-
Notifications
You must be signed in to change notification settings - Fork 4.1k
cli: cockroach connect listens on IPv6 by default but doesn't say so #61619
Copy link
Copy link
Open
Labels
A-authenticationPertains to authn subsystemsPertains to authn subsystemsA-cli-adminCLI commands that pertain to controlling and configuring nodesCLI commands that pertain to controlling and configuring nodesA-securityA-server-networkingPertains to network addressing,routing,initializationPertains to network addressing,routing,initializationC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.S-3-ux-surpriseIssue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.Issue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.T-server-and-securityDB Server & SecurityDB Server & Security
Metadata
Metadata
Assignees
Labels
A-authenticationPertains to authn subsystemsPertains to authn subsystemsA-cli-adminCLI commands that pertain to controlling and configuring nodesCLI commands that pertain to controlling and configuring nodesA-securityA-server-networkingPertains to network addressing,routing,initializationPertains to network addressing,routing,initializationC-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.S-3-ux-surpriseIssue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.Issue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.T-server-and-securityDB Server & SecurityDB Server & Security
Trying to establish a bundle with the following two commands:
on node running on
192.168.2.10:cockroach connect --num-expected-initial-nodes 2 --init-token abcon node running on
192.168.2.19:cockroach connect --num-expected-initial-nodes 2 --init-token abc --join=192.168.2.10:26257 --listen-addr=:26258 --http-addr=:8081This fails with the following error/warning:
Indeed, a display via
netstatreveals that both commands have not started listening on the IPv4 external interface. Via verbose logging we can indeed see:Listening on IPv6 may or may not be what the user actually wants, however it's problematic that the "default" (simpler argument) behavior gets a broken
connectbehavior with no visual indication of what's wrong.The command should, at the very least, display on its standard output:
which address(es) it's listening on, which are suitable for use with
--joinin other commands running on the same local networkthe list of addresses it's going to populate into its server certificates
Related to #60632
cc @aaron-crl @itsbilal
Jira issue: CRDB-6273
Epic: CRDB-6663