[one.vmpool.calculateshowback] Cannot process request, no leader found

Hello,

I’m running OpenNebula 5.12.0.1 with a 3 Node HA Frontend Setup.
When I run this command on one of the followers I received this error:

$ oneshowback calculate --start “1/2020”
[one.vmpool.calculateshowback] Cannot process request, no leader found

On the followers I see the following in the oned.log:

Mon Oct 19 18:39:20 2020 [Z0][ReM][D]: Req:1664 UID:0 IP:127.0.0.1 one.vmpool.calculateshowback invoked , -1, -1, -1, -1
Mon Oct 19 18:39:20 2020 [Z0][ReM][E]: Req:1664 UID:0 one.vmpool.calculateshowback result FAILURE [one.vmpool.calculateshowback] Cannot process request, no leader found
Mon Oct 19 18:39:21 2020 [Z0][ReM][D]: Req:5328 UID:0 IP:127.0.0.1 one.system.config invoked
Mon Oct 19 18:39:21 2020 [Z0][ReM][E]: Req:5328 UID:0 one.system.config result FAILURE [one.system.config] Cannot process request, no leader found
Mon Oct 19 18:39:23 2020 [Z0][ReM][D]: Req:320 UID:0 IP:127.0.0.1 one.system.config invoked
Mon Oct 19 18:39:23 2020 [Z0][ReM][E]: Req:320 UID:0 one.system.config result FAILURE [one.system.config] Cannot process request, no leader found
Mon Oct 19 18:39:25 2020 [Z0][ReM][D]: Req:208 UID:0 IP:127.0.0.1 one.system.config invoked

in the sched.log I can see:

Mon Oct 19 19:42:14 2020 [Z0][SCHED][E]: Cannot contact oned, will retry… Error: HTTP POST to URL ‘http://localhost:2633/RPC2’ failed. libcurl failed even to execute the HTTP transaction, explaining: Failed
to connect to localhost port 2633: Connection refused
Mon Oct 19 19:42:16 2020 [Z0][SCHED][E]: Cannot contact oned, will retry… Error: [one.system.config] Cannot process request, no leader found

Is this related to the HA Setup somehow? Does anybody haven an idea why this happens?

Thomas

Hello,

I found out that the reason was a inconsistency between the SERVER_ID in the RAFT Setup and in oned.conf.

Problem seems to be solved. Sorry for the noise.
Thomas

Perfect, Thanks for the update!