Compare commits

...

2 Commits

Author SHA1 Message Date
c84ee0f4f1 Bump version to 0.9.55 2022-10-04 13:21:40 -04:00
76c51460b0 Avoid raise/handle deadlocks
Can cause log flooding in some edge cases and isn't really needed any
longer. Use a proper conditional followed by an actual error handler.
2022-10-03 14:04:12 -04:00
7 changed files with 35 additions and 15 deletions

View File

@@ -1 +1 @@
0.9.54 0.9.55

View File

@@ -1,5 +1,10 @@
## PVC Changelog ## PVC Changelog
###### [v0.9.55](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.55)
* Fixes a problem with the literal eval handler in the provisioner (again)
* Fixes a potential log deadlock in Zookeeper-lost situations when doing keepalives
###### [v0.9.54](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.54) ###### [v0.9.54](https://github.com/parallelvirtualcluster/pvc/releases/tag/v0.9.54)
[CLI Client] Fixes a bad variable reference from the previous change [CLI Client] Fixes a bad variable reference from the previous change

View File

@@ -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.54" version = "0.9.55"
# API version # API version
API_VERSION = 1.0 API_VERSION = 1.0

View File

@@ -2,7 +2,7 @@ from setuptools import setup
setup( setup(
name="pvc", name="pvc",
version="0.9.54", version="0.9.55",
packages=["pvc", "pvc.cli_lib"], packages=["pvc", "pvc.cli_lib"],
install_requires=[ install_requires=[
"Click", "Click",

7
debian/changelog vendored
View File

@@ -1,3 +1,10 @@
pvc (0.9.55-0) unstable; urgency=high
* Fixes a problem with the literal eval handler in the provisioner (again)
* Fixes a potential log deadlock in Zookeeper-lost situations when doing keepalives
-- Joshua M. Boniface <joshua@boniface.me> Tue, 04 Oct 2022 13:21:40 -0400
pvc (0.9.54-0) unstable; urgency=high pvc (0.9.54-0) unstable; urgency=high
[CLI Client] Fixes a bad variable reference from the previous change [CLI Client] Fixes a bad variable reference from the previous change

View File

@@ -48,7 +48,7 @@ import re
import json import json
# Daemon version # Daemon version
version = "0.9.54" version = "0.9.55"
########################################################## ##########################################################

View File

@@ -661,15 +661,19 @@ def node_keepalive(logger, config, zkhandler, this_node):
zkhandler.read("base.config.migration_target_selector") zkhandler.read("base.config.migration_target_selector")
!= config["migration_target_selector"] != config["migration_target_selector"]
): ):
raise zkhandler.write(
[
(
"base.config.migration_target_selector",
config["migration_target_selector"],
)
]
)
except Exception: except Exception:
zkhandler.write( logger.out(
[ "Failed to set migration target selector in Zookeeper",
( state="e",
"base.config.migration_target_selector", prefix="main-thread",
config["migration_target_selector"],
)
]
) )
# Set the upstream IP in Zookeeper for clients to read # Set the upstream IP in Zookeeper for clients to read
@@ -680,10 +684,14 @@ def node_keepalive(logger, config, zkhandler, this_node):
zkhandler.read("base.config.upstream_ip") zkhandler.read("base.config.upstream_ip")
!= config["upstream_floating_ip"] != config["upstream_floating_ip"]
): ):
raise zkhandler.write(
[("base.config.upstream_ip", config["upstream_floating_ip"])]
)
except Exception: except Exception:
zkhandler.write( logger.out(
[("base.config.upstream_ip", config["upstream_floating_ip"])] "Failed to set upstream floating IP in Zookeeper",
state="e",
prefix="main-thread",
) )
# Get past state and update if needed # Get past state and update if needed