Hi
I'm writing some health checks for our PVE clusters and was wondering, why the quorate flag queried by the API differs from the one from pvesh:
Via API:
Via pvesh:
Since it is not a HA cluster (as with only 2 nodes), I manually changed the quorum to 1 vote. Did I overlooked something?
Thanks in advance and regards,
Nicolai
I'm writing some health checks for our PVE clusters and was wondering, why the quorate flag queried by the API differs from the one from pvesh:
Via API:
Code:
[
{
"name": "testcluster",
"version": 2,
"quorate": 0,
"nodes": 2,
"type": "cluster",
"id": "cluster"
},
{
"name": "pve01",
"level": "",
"ip": "10.0.0.21",
"nodeid": 1,
"local": 0,
"online": 0,
"type": "node",
"id": "node/pve01"
},
{
"type": "node",
"name": "pve02",
"level": "",
"ip": "10.0.0.22",
"nodeid": 2,
"online": 1,
"local": 1,
"id": "node/pve02"
}
]
Via pvesh:
Code:
pve:/> get cluster/status
200 OK
[
{
"id" : "cluster",
"name" : "testcluster",
"nodes" : 2,
"quorate" : 1,
"type" : "cluster",
"version" : 2
},
{
"id" : "node/pve01",
"ip" : "10.0.0.21",
"level" : "",
"local" : 0,
"name" : "pve01",
"nodeid" : 1,
"online" : 0,
"type" : "node"
},
{
"id" : "node/pve02",
"ip" : "10.0.0.22",
"level" : "",
"local" : 1,
"name" : "pve02",
"nodeid" : 2,
"online" : 1,
"type" : "node"
}
]
Since it is not a HA cluster (as with only 2 nodes), I manually changed the quorum to 1 vote. Did I overlooked something?
Thanks in advance and regards,
Nicolai