mariadb/scripts
Julius Goryavsky d57e60d782 MDEV-23580: WSREP_SST: [ERROR] rsync daemon port has been taken
This commit contains a large set of further bug fixes and
improvements to SST scripts for Galera, continuing the work
that was started in MDEV-24962 to make SST scripts work smoothly
in different network configurations (especially using ipv6) and
with different environment settings:

 1) The ipv6 addresses were incorrectly handled in the SST script
    for rsync (incorrect address substitution for establishing a
    connection, incorrect address substitution for bind, and so on);
 2) Checking the locality of the ip-address in SST scripts did not
    support ipv6 addresses (such as "[::1]"), which were falsely
    identified as non-local ip, which further did not allow running
    two SSTs on different local addresses on the same machine.
    On the other hand, this bug masked some other errors (related
    to handling ipv6 addresses);
 3) The code for checking the locality of the ip address was different
    in the SST scripts for rsync and for mysqldump, with individual
    flaws. This code is now made common and moved to wsrep_sst_common;
 4) Waiting for the start of the transport channel (socat, nc, rsync,
    stunnel) in the wait_for_listen() and check_pid_and_port() functions
    did not process ipv6 addresses correctly in all cases (not for all
    branches);
 5) Waiting for the start of the transport channel (socat, nc, rsync,
    stunnel) in the wait_for_listen() and check_pid_and_port() functions
    for some code branches could give a false positive result due to
    the textual match of prefixes in the port number and/or PID of
    the process;
 6) Waiting for the start of the transport channel (socat, nc, rsync,
    stunnel) was supported through different utilities in SST scripts
    for mariabackup and for rsync, and with various minor flaws in
    the code. Now the code is still different in these scripts, but
    it supports a common set of utilities (lsof, ss, sockstat) and
    is synchronized across patterns that used to check the output
    of  these utilities;
 7) In SST via mariabackup, the signal about readiness to receive data
    is sometimes sent too early - immediately after listen(), and not
    after accept() (which are called by socat or netcat utility).
 8) Checking availability of the some options of some utilities was
    done using the grep pattern, which easily gives false positives;
 9) Common name (CN) for local addresses, if not explicitly specified,
    is now always replaced to "localhost" to avoid the need to generate
    many separate certificates for local addresses of one machine and
    not to depend on which the local address is currently used in test
    (ipv4 or ipv6, etc.);
10) In tests galera_sst_mariabackup_encrypt_with_key_server and
    galera_sst_rsync_encrypt_with_key_server the correct certificate
    is selected to avoid commonname (CN) mismatch problems;
11) Further refactoring to protect against spaces in file names.
12) Further general refactoring to eliminate bash-specific constructs
    or to improve code readability;
13) The code for setting options for the nc (netcat) utility was
    different in different scripts for SST - now it is made identical.
14) Fixed long-time broken encryption via xbcrypt in combination with
    mariabackup and added support for key-based encryption via openssl
    utility, which is now enabled by default for encrypt=1 mode (this
    default mode can be changed using a new configuration file option
    "encypt-format=openssl|xbcrypt", which can be placed in the [mysqld],
    [sst] or in the [xtrabackup] section) - this change will allow us
    to use and to test the encypt=1 encryption without installing
    non-standard third-party utilities.
2021-05-17 20:31:12 +02:00
..
CMakeLists.txt Fix cross-compile to consider CMAKE_CROSSCOMPILING_EMULATOR 2021-04-15 10:07:50 +10:00
comp_sql.c MDEV-19860 - do not produce huge strings wtih comp_sql anymore. 2019-06-25 23:53:42 +02:00
convert-debug-for-diff.sh MDEV-23697: bin/env perl -i -> bin/perl -i 2020-10-02 05:28:58 +02:00
dheadgen.pl BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
fill_help_tables.sql MDEV-18650: Options deprecated in previous versions - storage_engine 2020-02-13 13:42:01 +02:00
galera_new_cluster.sh MDEV-17379: galera_new_cluster throws error in 10.3.10 2018-11-09 08:41:05 +02:00
galera_recovery.sh MDEV-21140 Make galera_recovery.sh work with fs.protected_regular = 1 (#1417) 2020-04-05 18:40:27 +03:00
maria_add_gis_sp.sql.in MDEV-19650: Privilege bug on MariaDB 10.4 2020-05-07 10:54:56 +02:00
mariadb-service-convert Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
msql2mysql.sh Update FSF Address 2019-05-11 21:29:06 +03:00
mysql_config.pl.in Merge 10.3 into 10.4 2020-10-29 13:38:38 +02:00
mysql_config.sh Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
mysql_convert_table_format.sh Switch Perl DBI scripts from DBD::mysql to DBD::MariaDB driver 2019-07-19 13:39:20 +03:00
mysql_find_rows.sh Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_fix_extensions.sh Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_install_db.sh Merge 10.4 into 10.5 2021-05-10 10:01:15 +03:00
mysql_performance_tables.sql MDEV-4262 - P_S discovery 2014-08-19 15:18:18 +04:00
mysql_secure_installation.sh MDEV-19516 mysql_secure_installation doesn't set password_last_changed while setting password for root 2019-10-30 15:24:00 +01:00
mysql_setpermission.sh MDEV-23015: mariadb-setpermission seems incompatible with DBI:MariaDB 2021-04-13 11:31:10 +02:00
mysql_system_tables.sql Merge 10.4 into 10.5 2021-03-11 20:09:34 +02:00
mysql_system_tables_data.sql Merge branch '10.3' into 10.4 2019-12-09 15:09:41 +01:00
mysql_system_tables_fix.sql Merge 10.4 into 10.5 2021-03-11 20:09:34 +02:00
mysql_test_data_timezone.sql Update FSF Address 2019-05-11 21:29:06 +03:00
mysql_test_db.sql Updated mtr files to support different compiled in options 2019-09-01 19:17:35 +03:00
mysqlaccess.conf BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
mysqlaccess.sh Merge 10.1 into 10.2 2019-10-25 12:57:36 +03:00
mysqld_multi.sh MDEV-21039: Server fails to start with unknown mysqld_safe options 2021-03-16 11:30:36 +01:00
mysqld_safe.sh Merge commit '10.4' into 10.5 2021-01-06 10:53:00 +01:00
mysqldumpslow.sh Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysqlhotcopy.sh Merge branch '10.4' into 10.5 2020-02-12 08:55:17 +01:00
mytop.sh Fix various spelling errors still found in code 2021-03-22 18:10:39 +11:00
wsrep_sst_common.sh MDEV-23580: WSREP_SST: [ERROR] rsync daemon port has been taken 2021-05-17 20:31:12 +02:00
wsrep_sst_mariabackup.sh MDEV-23580: WSREP_SST: [ERROR] rsync daemon port has been taken 2021-05-17 20:31:12 +02:00
wsrep_sst_mysqldump.sh MDEV-23580: WSREP_SST: [ERROR] rsync daemon port has been taken 2021-05-17 20:31:12 +02:00
wsrep_sst_rsync.sh MDEV-23580: WSREP_SST: [ERROR] rsync daemon port has been taken 2021-05-17 20:31:12 +02:00