Hello everyone,
I have a HA cluster running normally, but due to an incorrect operation, a leader election occurred, and a new leader was elected. Everything seems to be fine, but the term has reset to 0; previously, it was around 1550. The index and commit both appear to be normal. Is my cluster operating incorrectly?
Some log oned.log from the follower just before it became the current leader:
Fri Oct 27 10:23:17 2023 [Z0][RRM][E]: Failed to get heartbeat from leader. Starting election proccess
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Vote not granted from follower 2: [one.zone.voterequest] Candidate's term is outdated
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Follower 2 is in term 4294967295 current term is 1576. Turning into follower
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: oned is set to follower mode
Fri Oct 27 10:23:17 2023 [Z0][RRM][E]: Failed to get heartbeat from leader. Starting election proccess
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Vote not granted from follower 2: [one.zone.voterequest] Candidate's term is outdated
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Follower 2 is in term 4294967295 current term is 0. Turning into follower
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: oned is set to follower mode
Fri Oct 27 10:23:17 2023 [Z0][RRM][E]: Failed to get heartbeat from leader. Starting election proccess
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Vote not granted from follower 2: [one.zone.voterequest] Candidate's term is outdated
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Follower 2 is in term 4294967295 current term is 0. Turning into follower
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: oned is set to follower mode
Fri Oct 27 10:23:17 2023 [Z0][RRM][E]: Failed to get heartbeat from leader. Starting election proccess
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Vote not granted from follower 2: [one.zone.voterequest] Candidate's term is outdated
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Follower 2 is in term 4294967295 current term is 0. Turning into follower
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: oned is set to follower mode
Fri Oct 27 10:23:17 2023 [Z0][RRM][E]: Failed to get heartbeat from leader. Starting election proccess
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Vote not granted from follower 2: [one.zone.voterequest] Candidate's term is outdated
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Follower 2 is in term 4294967295 current term is 0. Turning into follower
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: oned is set to follower mode
Fri Oct 27 10:23:17 2023 [Z0][RRM][E]: Failed to get heartbeat from leader. Starting election proccess
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Vote not granted from follower 2: [one.zone.voterequest] Candidate's term is outdated
Fri Oct 27 10:23:17 2023 [Z0][RCM][I]: Follower 2 is in term 4294967295 current term is 0. Turning into follower
Onezone show:
ZONE 0 INFORMATION
ID : 0
NAME : opennebula.zone
STATE : ENABLED
ZONE SERVERS
ID NAME ENDPOINT
2 server-2 http://192.168.0.3:2633/RPC2
3 server-0 http://192.168.0.1:2633/RPC2
4 server-1 http://192.168.0.2:2633/RPC2
HA & FEDERATION SYNC STATUS
ID NAME STATE TERM INDEX COMMIT VOTE FED_INDEX
2 server-2 follower 0 708728 708728 4 -1
3 server-0 follower 0 708728 708728 -1 -1
4 server-1 leader 0 708728 708728 4 -1
ZONE TEMPLATE
ENDPOINT="http://localhost:2633/RPC2"
I use Opennebula Frontend CE 6.6.3 and server’s os is Ubuntu 22.04
Thank you.