Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1.17
-
RHEL7, internal IPv6 networking, 3 node Galera cluster
-
5.5.59
Description
Configured internal IPv6 networking for galera cluster replication. First node creates new cluster successfully, but 2nd node is unable to join cluster when attempts SST rsync. Attached server.cnf is my /etc/my.cnf.d/server.cnf file.
After I fixed the wsrep_sst_rsync script (in code shown below), the 2nd node successfully joined the cluster over IPv6.
Here is the excerpt from /var/log/messages:
2016-11-18T03:33:04.049379+08:00 db0 mysqld: 2016-11-18 3:33:04 140673315493632 [Note] WSREP: Running: 'wsrep_sst_rsync --role 'joiner' --address '2500:face:4567::6' --datadir '/mariadb/data/' --parent '16184' '' '
|
2016-11-18T03:33:04.078435+08:00 db0 mysqld: rsync: face: invalid numeric value (in daemon mode)
|
2016-11-18T03:33:04.078547+08:00 db0 mysqld: (Type "rsync --daemon --help" for assistance with daemon mode.)
|
2016-11-18T03:33:04.078653+08:00 db0 mysqld: rsync error: syntax or usage error (code 1) at options.c(1005) [client=3.0.9]
|
This is a bug in the following code in teh wsrep_sst_rsync script that doesn't support IPv6 format address:
ADDR=$WSREP_SST_OPT_ADDR
|
RSYNC_PORT=$(echo $ADDR | awk -F ':' '{ print $2 }') |
if [ -z "$RSYNC_PORT" ] |
then |
RSYNC_PORT=4444
|
ADDR="$(echo $ADDR | awk -F ':' '{ print $1 }'):$RSYNC_PORT" |
fi |
Attachments
Issue Links
- relates to
-
MDEV-9890 wsrep_cluster_address does not accept IPv6 addresses
-
- Closed
-
-
MDEV-11006 Galera config on ipv6 only hosts
-
- Closed
-
-
MDEV-18797 Make mariabackup/xtrabackup-v2 SST script autodetect ipv6 addresses and add relevant socat option
-
- Closed
-
Hi, can you open a pull request for your contribution. Similar to other open source projects, the MariaDB Foundation needs to have shared ownership of all code that is included in the MariaDB distribution. The easiest way to achieve this is by submitting your code under the BSD-new license.
The other alternative is to sign the code contribution agreement which can be found here: https://mariadb.com/kb/en/mariadb/mca/
Please indicate in a comment in your pull request that you are contributing your new code of the whole pull request, including one or several files that are either new files or modified ones, under the BSD-new license or that you have filled out the contribution agreement and sent it.