Werk #22365 · Sep 24, 26
proxmox_ve: don't crash when a node reports 0 total CPUs or memory
If a Proxmox VE node reported a total of 0 CPUs or 0 memory (for example, when the node was offline), the services "Proxmox VE CPU allocation ratio" and "Proxmox VE Memory allocation ratio" crashed with "ZeroDivisionError: float division by zero".
Both services now report OK and show the status of the node and its total CPUs or total memory. For an offline node, or a node that reports a total of 0, the services no longer calculate the allocation ratio.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p15All Editions