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

Galera SST IPv6 problems

    XMLWordPrintable

Details

    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

          Activity

            People

              jplindst Jan Lindström (Inactive)
              kuula Miika Kankare
              Votes:
              2 Vote for this issue
              Watchers:
              6 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.