[MDEV-18797] Make mariabackup/xtrabackup-v2 SST script autodetect ipv6 addresses and add relevant socat option Created: 2019-03-02  Updated: 2021-05-27  Resolved: 2021-05-25

Status: Closed
Project: MariaDB Server
Component/s: Galera, Galera SST, mariabackup
Affects Version/s: None
Fix Version/s: 10.6.2, 10.2.39, 10.3.30, 10.4.20, 10.5.11

Type: Bug Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Julius Goryavsky
Resolution: Fixed Votes: 2
Labels: None

Issue Links:
Relates
relates to MDEV-9890 wsrep_cluster_address does not accept... Closed
relates to MDEV-11006 Galera config on ipv6 only hosts Closed
relates to MDEV-11314 MariaDB Galera Cluister issue with in... Closed
relates to MDEV-17618 Galera SST IPv6 problems Closed
relates to MDEV-18379 Unification of check for IPv6 Closed
relates to MDEV-21192 SST failing when enabling IPV6 Closed

 Description   

If a mariabackup or xtrabackup-v2 SST is done with an IPv6 address, then you need to add the pf=ip6 option to socat. This is done by adding the following to the [sst] option group in an option file:

[sst]
sockopt=",pf=ip6"

For example, see the following configuration file from an automated test:

https://github.com/MariaDB/server/blob/4aea6b3e3f3fd1a8a2526bc40fc5e85e571d8242/mysql-test/suite/galera_3nodes/t/galera_ipv6_mariabackup.cnf#L29

Would it be possible for the mariabackup/xtrabackup-v2 SST scripts to auto-detect IPv6 addresses, and then automatically add this socat option, so that users do not need to explicitly provide it?



 Comments   
Comment by Jan Lindström (Inactive) [ 2019-12-12 ]

Feature request.

Comment by Julius Goryavsky [ 2021-05-25 ]

Fixed as part of MDEV-21192

Generated at Thu Feb 08 08:46:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.