Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1(EOL), 10.2(EOL), 10.3(EOL)
Description
I have been trying to create a Galera cluster with IPv6 networking. I know there's some other issues regarding this as well, I've probably read them.
There's at least a few problems:
wsrep_sst_common IPv6 address / port parsing is broken:
$ bash -vx './wsrep_sst_common.sh' --address '[2001:db8::1]:3333/module/lsn_version/sst_ver/some_future_option1/some_future_option2' 2>&1 |grep WSREP_SST_OPT_PORT
|
readonly WSREP_SST_OPT_PORT="$2"
|
if [ -n "${WSREP_SST_OPT_PORT:-}" ]; then
|
if [ "$WSREP_SST_OPT_PORT" != "$WSREP_SST_OPT_ADDR_PORT" ]; then
|
echo "WSREP_SST: [ERROR] port in --port=$WSREP_SST_OPT_PORT differs from port in --address=$WSREP_SST_OPT_ADDR" >&2
|
readonly WSREP_SST_OPT_PORT="$WSREP_SST_OPT_ADDR_PORT"
|
+ readonly 'WSREP_SST_OPT_PORT=[2001:db8::1]:3333'
|
+ WSREP_SST_OPT_PORT='[2001:db8::1]:3333'
|
I went through the history of the script, and I think this commit is the one breaking it: https://github.com/MariaDB/server/commit/c22ab56f0d690feee471e173a3d95acb642cd6dc#diff-0b1123372bd9bf8a76dd8dd90aa3808d
It was working after this pull request was merged: https://github.com/MariaDB/server/pull/644
I tried with xtrabackup-v2 and mariabackup. The other problem is that mariabackup doesn't even use the variables parsed by the common script, so the IPv6 things are parsed there again and it's broken too.
https://github.com/MariaDB/server/blob/10.2/scripts/wsrep_sst_mariabackup.sh#L519
Attachments
Issue Links
- relates to
-
MDEV-11006 Galera config on ipv6 only hosts
- Closed
-
MDEV-14030 Remove or Merge wsrep_sst_mariabackup
- Closed
-
MDEV-14612 Galera SST xtrabackup-v2/mariabackup scripts unnecessarily convert joiner address to host name
- Closed
-
MDEV-15496 IPv6 literal addresses in wsrep SST scripts
- Closed
-
MDEV-18797 Make mariabackup/xtrabackup-v2 SST script autodetect ipv6 addresses and add relevant socat option
- Closed