Compare commits

..

1 Commits

Author SHA1 Message Date
6b23fd7890 Bump version to 1.0.2 2026-01-30 09:58:52 -05:00
10 changed files with 26 additions and 46 deletions

View File

@@ -1 +1 @@
1.0.3 1.0.2

View File

@@ -1,13 +1,8 @@
## PVC Changelog ## PVC Changelog
###### [v1.0.3](https://github.com/parallelvirtualcluster/pvc/releases/tag/v1.0.3)
* Fixes silent errors in the dnsmasq DHCP lease handler which can prevent leases from updating
* Improves the 3-debootstrap.py provisioner example script to work with Debian 13+
###### [v1.0.2](https://github.com/parallelvirtualcluster/pvc/releases/tag/v1.0.2) ###### [v1.0.2](https://github.com/parallelvirtualcluster/pvc/releases/tag/v1.0.2)
* [Worker Daemon] [Bugfix] Fixed a bug in the calling of osd create-db-vg command worker * Fixed a bug in the calling of osd crete-db-vg command worker
###### [v1.0.1](https://github.com/parallelvirtualcluster/pvc/releases/tag/v1.0.1) ###### [v1.0.1](https://github.com/parallelvirtualcluster/pvc/releases/tag/v1.0.1)

View File

@@ -485,8 +485,6 @@ class VMBuilderScript(VMBuilder):
"acpid", "acpid",
"acpi-support-base", "acpi-support-base",
"wget", "wget",
"ifupdown", # be explicit for Debian 13+
"isc-dhcp-server", # required for cloud-init on Debian 13+ where this is no longer standard
] ]
# We need to know our root disk for later GRUB-ing # We need to know our root disk for later GRUB-ing
@@ -587,15 +585,13 @@ After=multi-user.target
disable_root: true disable_root: true
preserve_hostname: true preserve_hostname: true
network:
config: disabled
datasource: datasource:
Ec2: Ec2:
metadata_urls: ["http://169.254.169.254:80"] metadata_urls: ["http://169.254.169.254:80"]
max_wait: 5 max_wait: 30
timeout: 5 timeout: 30
apply_full_imds_network_config: true
cloud_init_modules: cloud_init_modules:
- migrator - migrator

View File

@@ -30,7 +30,7 @@ from yaml import load as yload
from yaml import SafeLoader from yaml import SafeLoader
VERSION = "1.0.3" VERSION = "1.0.2"
DEFAULT_STORE_DATA = {"cfgfile": "/etc/pvc/pvc.conf"} DEFAULT_STORE_DATA = {"cfgfile": "/etc/pvc/pvc.conf"}
DEFAULT_STORE_FILENAME = "pvc.json" DEFAULT_STORE_FILENAME = "pvc.json"

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "pvc" name = "pvc"
version = "1.0.3" version = "1.0.2"
dependencies = [ dependencies = [
"Click", "Click",
"PyYAML", "PyYAML",

9
debian/changelog vendored
View File

@@ -1,13 +1,6 @@
pvc (1.0.3-0) unstable; urgency=high
* Fixes silent errors in the dnsmasq DHCP lease handler which can prevent leases from updating
* Improves the 3-debootstrap.py provisioner example script to work with Debian 13+
-- Joshua M. Boniface <joshua@boniface.me> Sun, 01 Mar 2026 22:48:49 -0500
pvc (1.0.2-0) unstable; urgency=high pvc (1.0.2-0) unstable; urgency=high
* [Worker Daemon] [Bugfix] Fixed a bug in the calling of osd create-db-vg command worker * Fixed a bug in the calling of osd crete-db-vg command worker
-- Joshua M. Boniface <joshua@boniface.me> Fri, 30 Jan 2026 09:58:00 -0500 -- Joshua M. Boniface <joshua@boniface.me> Fri, 30 Jan 2026 09:58:00 -0500

View File

@@ -33,7 +33,7 @@ import os
import signal import signal
# Daemon version # Daemon version
version = "1.0.3" version = "1.0.2"
########################################################## ##########################################################

View File

@@ -49,7 +49,7 @@ import re
import json import json
# Daemon version # Daemon version
version = "1.0.3" version = "1.0.2"
########################################################## ##########################################################

View File

@@ -130,25 +130,21 @@ def read_lease_database(zk_conn, zk_leases_key):
def add_lease(zk_conn, zk_leases_key, expiry, macaddr, ipaddr, hostname, clientid): def add_lease(zk_conn, zk_leases_key, expiry, macaddr, ipaddr, hostname, clientid):
if not hostname: if not hostname:
hostname = "" hostname = ""
try: transaction = zk_conn.transaction()
zk_conn.delete("{}/{}".format(zk_leases_key, macaddr), recursive=True) transaction.create("{}/{}".format(zk_leases_key, macaddr), "".encode("ascii"))
transaction = zk_conn.transaction() transaction.create(
transaction.create("{}/{}".format(zk_leases_key, macaddr), "".encode("ascii")) "{}/{}/expiry".format(zk_leases_key, macaddr), expiry.encode("ascii")
transaction.create( )
"{}/{}/expiry".format(zk_leases_key, macaddr), expiry.encode("ascii") transaction.create(
) "{}/{}/ipaddr".format(zk_leases_key, macaddr), ipaddr.encode("ascii")
transaction.create( )
"{}/{}/ipaddr".format(zk_leases_key, macaddr), ipaddr.encode("ascii") transaction.create(
) "{}/{}/hostname".format(zk_leases_key, macaddr), hostname.encode("ascii")
transaction.create( )
"{}/{}/hostname".format(zk_leases_key, macaddr), hostname.encode("ascii") transaction.create(
) "{}/{}/clientid".format(zk_leases_key, macaddr), clientid.encode("ascii")
transaction.create( )
"{}/{}/clientid".format(zk_leases_key, macaddr), clientid.encode("ascii") transaction.commit()
)
transaction.commit()
except Exception as e:
print(f"FATAL: {e}")
def del_lease(zk_conn, zk_leases_key, macaddr, expiry): def del_lease(zk_conn, zk_leases_key, macaddr, expiry):

View File

@@ -58,7 +58,7 @@ from daemon_lib.automirror import (
) )
# Daemon version # Daemon version
version = "1.0.3" version = "1.0.2"
config = cfg.get_configuration() config = cfg.get_configuration()