Compare commits
4 Commits
v0.9.74
...
714d4b6005
Author | SHA1 | Date | |
---|---|---|---|
714d4b6005 | |||
fa8329ac3d | |||
457b7bed3d | |||
86115b2928 |
@ -72,7 +72,7 @@ class MonitoringPluginScript(MonitoringPlugin):
|
||||
from psutil import cpu_count
|
||||
|
||||
# Get the current 1-minute system load average
|
||||
load_average = getloadavg()[0]
|
||||
load_average = float(round(getloadavg()[0], 2))
|
||||
|
||||
# Get the number of CPU cores
|
||||
cpu_cores = cpu_count()
|
||||
|
@ -324,9 +324,14 @@ def entrypoint():
|
||||
config["ipmi_hostname"], config["ipmi_username"], config["ipmi_password"]
|
||||
):
|
||||
logger.out(
|
||||
"Our IPMI is not reachable; fencing of this node will likely fail",
|
||||
"Our IPMI interface is not reachable; fencing of this node will fail until corrected",
|
||||
state="w",
|
||||
)
|
||||
else:
|
||||
logger.out(
|
||||
"Our IPMI interface is reachable; fencing of this node is possible",
|
||||
state="o",
|
||||
)
|
||||
|
||||
# Validate libvirt
|
||||
if not pvcnoded.util.libvirt.validate_libvirtd(logger, config):
|
||||
|
@ -153,7 +153,13 @@ def migrateFromFencedNode(zkhandler, node_name, config, logger):
|
||||
|
||||
# Loop through the VMs
|
||||
for dom_uuid in dead_node_running_domains:
|
||||
try:
|
||||
fence_migrate_vm(dom_uuid)
|
||||
except Exception as e:
|
||||
logger.out(
|
||||
f"Failed to migrate VM {dom_uuid}, continuing: {e}",
|
||||
state="w",
|
||||
)
|
||||
|
||||
# Set node in flushed state for easy remigrating when it comes back
|
||||
zkhandler.write([(("node.state.domain", node_name), "flushed")])
|
||||
|
Reference in New Issue
Block a user