Debian Codegraph @

mysql-test/suite/group_replication/r/gr_clone_integration_basics_with_ssl.result

raw
1 include/group_replication.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection server1]
6
7 ############################################################
8 # 1. Install clone plugin on server1.
9 [connection server1]
10 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
11
12 ############################################################
13 # 2. Create a user that requires SSL
14 SET SESSION sql_log_bin=0;
15 CREATE USER 'rec_ssl_user'@'%' REQUIRE SSL;
16 GRANT replication slave ON *.* TO 'rec_ssl_user'@'%';
17 GRANT BACKUP_ADMIN ON *.* TO "rec_ssl_user";
18 GRANT GROUP_REPLICATION_STREAM ON *.* TO 'rec_ssl_user'@'%';
19 FLUSH PRIVILEGES;
20 SET SESSION sql_log_bin=1;
21 SET GLOBAL group_replication_ssl_mode= REQUIRED;
22 CHANGE REPLICATION SOURCE TO SOURCE_USER="rec_ssl_user" FOR CHANNEL "group_replication_recovery";
23
24 ############################################################
25 # 3. Bootstrap server1 and add some data
26 include/start_and_bootstrap_group_replication.inc
27 CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB;
28 INSERT INTO t1 VALUES (1);
29 INSERT INTO t1 VALUES (2);
30
31 #######################################################################
32 # 4. Restart server 2 with a monitoring process (mysqld_safe) if needed
33 [connection server2]
34 SET SESSION sql_log_bin=0;
35 CREATE USER 'rec_ssl_user'@'%' REQUIRE SSL;
36 GRANT replication slave ON *.* TO 'rec_ssl_user'@'%';
37 GRANT BACKUP_ADMIN ON *.* TO "rec_ssl_user";
38 GRANT GROUP_REPLICATION_STREAM ON *.* TO 'rec_ssl_user'@'%';
39 FLUSH PRIVILEGES;
40 SET SESSION sql_log_bin=1;
41 SET GLOBAL group_replication_ssl_mode= REQUIRED;
42 include/spawn_monitoring_process.inc
43
44 ############################################################
45 # 5. Setup the server so group replication starts on boot
46 INSTALL PLUGIN clone SONAME 'CLONE_PLUGIN';
47
48 ############################################################
49 # 6. Configure the plugin to use SSL while Cloning
50 # Start group replication on server 2
51 # Wait for it to restart and come back
52 # Check clone was completed
53 CHANGE REPLICATION SOURCE TO SOURCE_USER="rec_ssl_user" FOR CHANNEL "group_replication_recovery";
54 SET GLOBAL group_replication_clone_threshold= 1;
55 START GROUP_REPLICATION;
56 include/rpl_reconnect.inc
57 include/gr_wait_for_member_state.inc
58 include/assert.inc [Clone must be completed]
59 include/diff_tables.inc [server1:test.t1 ,server2:test.t1]
60
61 ############################################################
62 # 7. Cleanup
63 SET GLOBAL group_replication_clone_threshold= 9223372036854775807;;
64 RESET PERSIST IF EXISTS group_replication_group_name;
65 RESET PERSIST IF EXISTS group_replication_local_address;
66 RESET PERSIST IF EXISTS group_replication_group_seeds;
67 RESET PERSIST IF EXISTS group_replication_start_on_boot;
68 RESET PERSIST IF EXISTS group_replication_communication_stack;
69 RESET PERSIST IF EXISTS group_replication_ssl_mode;
70 RESET PERSIST IF EXISTS group_replication_recovery_use_ssl;
71 RESET PERSIST IF EXISTS group_replication_recovery_ssl_ca;
72 RESET PERSIST IF EXISTS group_replication_recovery_ssl_cert;
73 RESET PERSIST IF EXISTS group_replication_recovery_ssl_key;
74 DROP TABLE t1;
75 include/rpl_sync.inc
76 set session sql_log_bin=0;
77 call mtr.add_suppression("This member will start distributed recovery using clone. It is due to the number of missing transactions being higher than the configured threshold of*");
78 call mtr.add_suppression("Clone removing all user data for provisioning: Started");
79 call mtr.add_suppression("Clone removing all user data for provisioning: Finished");
80 set session sql_log_bin=1;
81 include/clean_monitoring_process.inc
82 server1
83 include/group_replication_end.inc