PVE cluster quorum via API not corrent

Dec 7, 2016
34
2
13
33
Berlin
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:
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!