openvswitch / ovs-issues

Issue tracker repo for Open vSwitch
10 stars 3 forks source link

Parsing raft vote_request RPC failed: misrouted message #162

Closed greenpau closed 6 years ago

greenpau commented 6 years ago

@blp , first, I removed a node (c431) from a cluster. Next, I joined it back in (5b27):

syntax "{"cluster":"37de4ae7-befa-46de-9fa6-f3b9d0b078a4","from":"413a3f1d-b1be-4556-8312-78a38cbc8666","last_log_index":17,"last_log_term":1,"term":3476278,"to":"c4318581-3111-42e4-a3e6-232553cc1182"}": syntax error: Parsing raft vote_request RPC failed: misrouted message (addressed to c431 but we're 5b27)

What is necessary so that old peers would recognize the new (5b27) ID? How do I remove the old ID (c431)?

greenpau commented 6 years ago

The way to remove the old ID is running:

ovs-appctl -t /var/run/openvswitch/ovnsb_db.ctl cluster/status OVN_Southbound
ovs-appctl -t /var/run/openvswitch/ovnsb_db.ctl cluster/kick OVN_Southbound c431
ovs-appctl -t /var/run/openvswitch/ovnsb_db.ctl cluster/status OVN_Southbound