Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
f46bfc962f | |||
714d4b6005 | |||
fa8329ac3d | |||
457b7bed3d | |||
86115b2928 |
@ -1,5 +1,11 @@
|
|||||||
## PVC Changelog
|
## PVC Changelog
|
||||||
|
|
||||||
|
###### [v0.9.75](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.75)
|
||||||
|
|
||||||
|
* [Node Daemon] Adds a startup message about IPMI when succeeding
|
||||||
|
* [Node Daemon] Fixes a bug in fencing allowing non-failing VMs to migrate
|
||||||
|
* [Node Daemon] Adds rounding to load average in load plugin for consistency
|
||||||
|
|
||||||
###### [v0.9.74](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.74)
|
###### [v0.9.74](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.74)
|
||||||
|
|
||||||
* [Docs] Removes docs from the main repo
|
* [Docs] Removes docs from the main repo
|
||||||
|
@ -27,7 +27,7 @@ from ssl import SSLContext, TLSVersion
|
|||||||
from distutils.util import strtobool as dustrtobool
|
from distutils.util import strtobool as dustrtobool
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "0.9.74"
|
version = "0.9.75"
|
||||||
|
|
||||||
# API version
|
# API version
|
||||||
API_VERSION = 1.0
|
API_VERSION = 1.0
|
||||||
|
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pvc",
|
name="pvc",
|
||||||
version="0.9.74",
|
version="0.9.75",
|
||||||
packages=["pvc.cli", "pvc.lib"],
|
packages=["pvc.cli", "pvc.lib"],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"Click",
|
"Click",
|
||||||
|
8
debian/changelog
vendored
8
debian/changelog
vendored
@ -1,3 +1,11 @@
|
|||||||
|
pvc (0.9.75-0) unstable; urgency=high
|
||||||
|
|
||||||
|
* [Node Daemon] Adds a startup message about IPMI when succeeding
|
||||||
|
* [Node Daemon] Fixes a bug in fencing allowing non-failing VMs to migrate
|
||||||
|
* [Node Daemon] Adds rounding to load average in load plugin for consistency
|
||||||
|
|
||||||
|
-- Joshua M. Boniface <joshua@boniface.me> Sat, 16 Sep 2023 23:06:38 -0400
|
||||||
|
|
||||||
pvc (0.9.74-0) unstable; urgency=high
|
pvc (0.9.74-0) unstable; urgency=high
|
||||||
|
|
||||||
* [Docs] Removes docs from the main repo
|
* [Docs] Removes docs from the main repo
|
||||||
|
@ -72,7 +72,7 @@ class MonitoringPluginScript(MonitoringPlugin):
|
|||||||
from psutil import cpu_count
|
from psutil import cpu_count
|
||||||
|
|
||||||
# Get the current 1-minute system load average
|
# 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
|
# Get the number of CPU cores
|
||||||
cpu_cores = cpu_count()
|
cpu_cores = cpu_count()
|
||||||
|
@ -49,7 +49,7 @@ import re
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "0.9.74"
|
version = "0.9.75"
|
||||||
|
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
@ -324,9 +324,14 @@ def entrypoint():
|
|||||||
config["ipmi_hostname"], config["ipmi_username"], config["ipmi_password"]
|
config["ipmi_hostname"], config["ipmi_username"], config["ipmi_password"]
|
||||||
):
|
):
|
||||||
logger.out(
|
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",
|
state="w",
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
logger.out(
|
||||||
|
"Our IPMI interface is reachable; fencing of this node is possible",
|
||||||
|
state="o",
|
||||||
|
)
|
||||||
|
|
||||||
# Validate libvirt
|
# Validate libvirt
|
||||||
if not pvcnoded.util.libvirt.validate_libvirtd(logger, config):
|
if not pvcnoded.util.libvirt.validate_libvirtd(logger, config):
|
||||||
|
@ -153,7 +153,13 @@ def migrateFromFencedNode(zkhandler, node_name, config, logger):
|
|||||||
|
|
||||||
# Loop through the VMs
|
# Loop through the VMs
|
||||||
for dom_uuid in dead_node_running_domains:
|
for dom_uuid in dead_node_running_domains:
|
||||||
fence_migrate_vm(dom_uuid)
|
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
|
# Set node in flushed state for easy remigrating when it comes back
|
||||||
zkhandler.write([(("node.state.domain", node_name), "flushed")])
|
zkhandler.write([(("node.state.domain", node_name), "flushed")])
|
||||||
|
Reference in New Issue
Block a user