Auto IPv6, update?

25 views
Skip to first unread message

Private Citizen

unread,
Sep 30, 2021, 11:03:12 AM9/30/21
to codership
I seen talk about IPv6 support from several years ago. Has there been additional progress on this?

Is it possible to tell Galera (and SST/IST) to auto grab IPv6 instead of IPv4 on servers with both? Without having to explicitly type out the full IPv6 address in multiple locations such as:

     [galera]
     wsrep_provider_options = ist.recv_addr=[...]:4568
     wsrep_node_address = [...]:4567
     wsrep_node_incoming_address = [...]:4567
     wsrep_sst_receive_address = [...]:4444

If not can this be a feature request? Either some setting to tell Galera the default IP version to look for, IPv4 vs IPv6

-OR-

A way to only have to set it once like wsrep_node_default_address=[...] which would be the default for all of the other address config settings?

-OR-

My favorite way would be for Galera to look at bind-address= to set the behavior. If bind-address is set to a specific address that address gets used in all other IP auto discovery settings. If bind-address=0.0.0.0 then it auto discovers the first IPv4, or if bind-address=:: then it auto discovers the first IPv6.

This way a default config can be shared among nodes without having to manually set the IPv6 in 4 different locations on each node.


Thanks.

Alexey Yurchenko

unread,
Oct 4, 2021, 8:50:47 AM10/4/21
to codership
Hi, actually setting wsrep_node_address should be enough, unless you need to customize ports.
Kind regards,
Alex

Private Citizen

unread,
Oct 4, 2021, 12:16:36 PM10/4/21
to codership
If i set just
     wsrep_node_address = [...]
with an IPv6 address it tries to listen on 0.0.0.0 and fails to join the cluster because it times out.


If i set just
     wsrep_node_address = [...]
     gmcast.listen_addr=tcp://[::]:4567
it listens on [::]:4567 but still doesn't join the cluster. The only error i can find in the logs says
     WSREP_SST: [INFO] Evaluating timeout -k 310 300 socat -u openssl-listen:[...],reuseaddr,cert='/.../galera-cert.pem',key='/.../galera-key.pem',verify=0,pf=ip6 stdio | '/usr//bin/mbstream' -x; RC=( ${PIPESTATUS[@]} ) (20211004 11:57:29.552)
     2021/10/04 11:57:29 socat[62985] E openssl-listen: 1 parameter required
     WSREP_SST: [ERROR] Error while getting data from donor node:  exit codes: 1 0 (20211004 11:57:29.587)
which doesn't tell me why.


If i set just
     wsrep_node_address = [...]
     gmcast.listen_addr=tcp://[::]:4567
     ist.recv_addr=[...]:4568
same thing as above, doesn't connect, same error.


If i set just
     wsrep_node_address = [...]
     gmcast.listen_addr=tcp://[::]:4567
     ist.recv_addr=[...]:4568
     wsrep_sst_receive_address = [...]:4444
then the node will join the cluster. The only setting i was able to leave out was wsrep_node_incoming_address.
Reply all
Reply to author
Forward
0 new messages