Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a28f8372b3 | |||
| c7729db898 | |||
| dfc8d598cb |
@@ -1,5 +1,10 @@
|
|||||||
## 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
|
* [Worker Daemon] [Bugfix] Fixed a bug in the calling of osd create-db-vg command worker
|
||||||
|
|||||||
@@ -485,6 +485,8 @@ 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
|
||||||
@@ -586,12 +588,14 @@ After=multi-user.target
|
|||||||
|
|
||||||
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: 30
|
max_wait: 5
|
||||||
timeout: 30
|
timeout: 5
|
||||||
apply_full_imds_network_config: true
|
|
||||||
|
|
||||||
cloud_init_modules:
|
cloud_init_modules:
|
||||||
- migrator
|
- migrator
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ from yaml import load as yload
|
|||||||
from yaml import SafeLoader
|
from yaml import SafeLoader
|
||||||
|
|
||||||
|
|
||||||
VERSION = "1.0.2"
|
VERSION = "1.0.3"
|
||||||
|
|
||||||
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"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "pvc"
|
name = "pvc"
|
||||||
version = "1.0.2"
|
version = "1.0.3"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"Click",
|
"Click",
|
||||||
"PyYAML",
|
"PyYAML",
|
||||||
|
|||||||
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
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
|
* [Worker Daemon] [Bugfix] Fixed a bug in the calling of osd create-db-vg command worker
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import os
|
|||||||
import signal
|
import signal
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "1.0.2"
|
version = "1.0.3"
|
||||||
|
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ import re
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "1.0.2"
|
version = "1.0.3"
|
||||||
|
|
||||||
|
|
||||||
##########################################################
|
##########################################################
|
||||||
|
|||||||
@@ -130,21 +130,25 @@ 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 = ""
|
||||||
transaction = zk_conn.transaction()
|
try:
|
||||||
transaction.create("{}/{}".format(zk_leases_key, macaddr), "".encode("ascii"))
|
zk_conn.delete("{}/{}".format(zk_leases_key, macaddr), recursive=True)
|
||||||
transaction.create(
|
transaction = zk_conn.transaction()
|
||||||
"{}/{}/expiry".format(zk_leases_key, macaddr), expiry.encode("ascii")
|
transaction.create("{}/{}".format(zk_leases_key, macaddr), "".encode("ascii"))
|
||||||
)
|
transaction.create(
|
||||||
transaction.create(
|
"{}/{}/expiry".format(zk_leases_key, macaddr), expiry.encode("ascii")
|
||||||
"{}/{}/ipaddr".format(zk_leases_key, macaddr), ipaddr.encode("ascii")
|
)
|
||||||
)
|
transaction.create(
|
||||||
transaction.create(
|
"{}/{}/ipaddr".format(zk_leases_key, macaddr), ipaddr.encode("ascii")
|
||||||
"{}/{}/hostname".format(zk_leases_key, macaddr), hostname.encode("ascii")
|
)
|
||||||
)
|
transaction.create(
|
||||||
transaction.create(
|
"{}/{}/hostname".format(zk_leases_key, macaddr), hostname.encode("ascii")
|
||||||
"{}/{}/clientid".format(zk_leases_key, macaddr), clientid.encode("ascii")
|
)
|
||||||
)
|
transaction.create(
|
||||||
transaction.commit()
|
"{}/{}/clientid".format(zk_leases_key, macaddr), clientid.encode("ascii")
|
||||||
|
)
|
||||||
|
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):
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ from daemon_lib.automirror import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Daemon version
|
# Daemon version
|
||||||
version = "1.0.2"
|
version = "1.0.3"
|
||||||
|
|
||||||
|
|
||||||
config = cfg.get_configuration()
|
config = cfg.get_configuration()
|
||||||
|
|||||||
Reference in New Issue
Block a user