Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-11314

MariaDB Galera Cluister issue with internal IPv6 GCOMM network

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1.17
    • N/A
    • Galera SST
    • 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

        1. server.cnf
          0.7 kB
          Richard Lane
        2. wsrep_sst_rsync
          12 kB
          Richard Lane

        Issue Links

          Activity

            People

              jplindst Jan Lindström (Inactive)
              rvlane Richard Lane
              Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.