Hi
I have set up a galera environment with 3 masters and that works fine.
Now I want to use SSL for the communication between the servers. I
followed the instructions here:
http://www.codership.com/wiki/doku.php?id=ssl_support
I keep getting "handshake failed". What am I missing?
Logs from first server started:
120211 19:53:21 [Note] WSREP: Quorum results:
version = 2,
component = PRIMARY,
conf_id = 0,
members = 1/1 (joined/total),
act_id = 118,
last_appl. = -1,
protocols = 0/1/1 (gcs/repl/appl),
group UUID = 23ac7203-4fe9-11e1-0800-6032ca00c9a2
120211 19:53:21 [Note] WSREP: Flow-control interval: [8, 16]
120211 19:53:21 [Note] WSREP: Restored state OPEN -> JOINED (118)
120211 19:53:21 [Note] WSREP: New cluster view: global state:
23ac7203-4fe9-11e1-0800-6032ca00c9a2:118, view# 1: Primary, number of
nodes: 1, my index: 0, protocol version 1
120211 19:53:21 [Note] WSREP: Member 0 (servername) synced with group.
120211 19:53:21 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 118)
120211 19:53:23 [Note] WSREP: Assign initial position for
certification: 118, protocol version: 1
120211 19:53:23 [Note] WSREP: Synchronized with group, ready for
connections
120211 19:58:50 [ERROR] WSREP: handshake failed for 0xa835fc0: 1
120211 19:58:52 [ERROR] WSREP: handshake failed for 0xa8473f0: 1
120211 19:58:53 [ERROR] WSREP: handshake failed for 0xa835fc0: 1
120211 19:58:55 [ERROR] WSREP: handshake failed for 0xa8473f0: 1
Logs from second server:
120211 19:58:49 mysqld_safe Starting mysqld daemon with databases
from /usr/local/mysql/data
120211 19:58:49 InnoDB: The InnoDB memory heap is disabled
120211 19:58:49 InnoDB: Mutexes and rw_locks use GCC atomic builtins
120211 19:58:49 InnoDB: Compressed tables use zlib 1.2.3
120211 19:58:49 InnoDB: Using Linux native AIO
120211 19:58:49 InnoDB: Initializing buffer pool, size = 128.0M
120211 19:58:49 InnoDB: Completed initialization of buffer pool
120211 19:58:49 InnoDB: highest supported file format is Barracuda.
120211 19:58:49 InnoDB: Waiting for the background threads to start
120211 19:58:50 InnoDB: 1.1.8 started; log sequence number 1954697
120211 19:58:50 [Note] Event Scheduler: Loaded 0 events
120211 19:58:50 [Note] WSREP: wsrep_load(): loading provider library '/
usr/lib/galera/libgalera_smm.so'
120211 19:58:50 [Note] WSREP: wsrep_load(): Galera 22.1.1(r95) by
Codership Oy <
in...@codership.com> loaded succesfully.
120211 19:58:50 [Note] WSREP: Reusing existing '/usr/local/mysql/data//
galera.cache'.
120211 19:58:50 [Note] WSREP: Passing config to GCS:
evs.consensus_timeout = PT1M; evs.inactive_check_period = PT10S;
evs.inactive_timeout = PT1M; evs.keepalive_period = PT3S;
evs.send_window = 1024; evs.suspect_timeout = PT30S;
evs.user_send_window = 512; gcache.dir = /usr/local/mysql/data/;
gcache.keep_pages_size = 0; gcache.mem_size = 0;
gcache.name = /usr/
local/mysql/data//galera.cache; gcache.page_size = 128M; gcache.size =
128M; gcs.fc_debug = 0; gcs.fc_factor = 0.5; gcs.fc_limit = 16;
gcs.fc_master_slave = NO; gcs.max_packet_size = 64500;
gcs.max_throttle = 0.25; gcs.recv_q_hard_limit =
2147483647;
gcs.recv_q_soft_limit = 0.25; replicator.commit_order = 3;
socket.ssl_cert = /conf/galeracert/cert.pem; socket.ssl_key = /conf/
galeracert/key.pem
120211 19:58:50 [Note] WSREP: Start replication
120211 19:58:50 [Note] WSREP: Found saved state:
23ac7203-4fe9-11e1-0800-6032ca00c9a2:118
120211 19:58:50 [Note] WSREP: Assign initial position for
certification: 118, protocol version: 1
120211 19:58:50 [Note] WSREP: Setting initial position to
23ac7203-4fe9-11e1-0800-6032ca00c9a2:118
120211 19:58:50 [Note] WSREP: protonet asio version 0
120211 19:58:50 [Note] WSREP: initializing ssl context
120211 19:58:50 [Note] WSREP: backend: asio
120211 19:58:50 [Note] WSREP: GMCast version 0
120211 19:58:50 [Note] WSREP: (6f46701a-54e2-11e1-0800-0a950abf2509,
'ssl://
0.0.0.0:4567') listening at ssl://
0.0.0.0:4567
120211 19:58:50 [Note] WSREP: (6f46701a-54e2-11e1-0800-0a950abf2509,
'ssl://
0.0.0.0:4567') multicast: , ttl: 1
120211 19:58:50 [Note] WSREP: EVS version 0
120211 19:58:50 [Note] WSREP: PC version 0
120211 19:58:50 [Note] WSREP: gcomm: connecting to group
'my_wsrep_cluster', peer '<server_1>:4567'
120211 19:58:50 [ERROR] WSREP: handshake failed for 0x92b8058: 1
120211 19:58:52 [ERROR] WSREP: handshake failed for 0x92dee08: 1
120211 19:58:53 [ERROR] WSREP: handshake failed for 0x92dee08: 1