Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Verify bundle failures preserve saved recovery state
pulse-triage[bot]09a519748c84
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 2351440724..797494b49f 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -43,11 +43,12 @@ a concurrent-writer or power-loss transaction guarantee: there is a short gapbetween the two directory renames while the server is stopped.Ordinary preparation failures and successful bundle restoration can use only-the existing prior-active recovery-start path. The server binary has already-been replaced at this point; a recovery start runs that admitted new binary,-not the previous binary. Configuration, keys and identity are not restored or-deleted, and the install still returns failure. Native recovery, sustained-health, full-runtime rollback and historical stopped updates remain separate.+the existing prior-active recovery-start path. The binary at the replacement+destination has already changed; starting the existing unit is not a binary+rollback or proof of its running executable's identity. Configuration, keys+and identity are not restored or deleted, and the install still returns failure.+Native recovery, sustained health, full-runtime rollback and historical stopped+updates remain separate.`TestRootInstallAgentScriptPublicationPreservesPreviousBundle` registers theordinary private-file failure/success controls, both real archive/sourcediff --git a/scripts/tests/test_server_script_publication.py b/scripts/tests/test_server_script_publication.pyindex afd49006b5..cfb252c4ad 100644--- a/scripts/tests/test_server_script_publication.py+++ b/scripts/tests/test_server_script_publication.py@@ -165,7 +165,14 @@ record completionclass ServerScriptPublication(unittest.TestCase):+ def setUp(self):+ self.fixture_count = 0++ def tearDown(self):+ print(f"Executed {self.fixture_count} confined fixture(s)")+def exercise(self, fault="", flow="direct", prior=True, existing=True, sidecars=True, target="directory"):+ self.fixture_count += 1with tempfile.TemporaryDirectory(prefix="pulse-script-publication-") as temporary:f = Path(temporary)install = f / "install"@@ -197,9 +204,17 @@ class ServerScriptPublication(unittest.TestCase):binary.chmod(0o755)(install / "bin/pulse").write_bytes(b"old executable")(install / "VERSION").write_text("v6.5.0\n")- saved = f / "config/.encryption.key"- saved.write_bytes(b"synthetic saved key and identity")- saved.chmod(0o600)+ saved_state = {+ f / "config/.encryption.key": b"synthetic saved key",+ f / "config/.env": b"PULSE_MOCK_MODE=false\n",+ f / "config/system.json": b'{"preserve":"configuration"}\n',+ f / "config/agent-id": b"synthetic saved identity",+ f / "config.backup.keep/.encryption.key": b"synthetic recovery key",+ }+ for path, content in saved_state.items():+ path.parent.mkdir(exist_ok=True)+ path.write_bytes(content)+ path.chmod(0o600)with tarfile.open(f / "input.tgz", "w:gz") as archive:for child in (f / "input").iterdir():archive.add(child, arcname=child.name)@@ -210,8 +225,9 @@ class ServerScriptPublication(unittest.TestCase):PULSE_CONFIG_DIR=str(f / "config"), PULSE_SERVICE_NAME="pulse-script-fixture")result = subprocess.run(["bash", "-c", HARNESS], cwd=f, env=env,text=True, capture_output=True, timeout=15)- self.assertEqual(saved.read_bytes(), b"synthetic saved key and identity")- self.assertEqual(stat.S_IMODE(saved.stat().st_mode), 0o600)+ for path, content in saved_state.items():+ self.assertEqual(path.read_bytes(), content)+ self.assertEqual(stat.S_IMODE(path.stat().st_mode), 0o600)self.assertEqual(outside.read_bytes(), b"unrelated file")live = install / "scripts"contents = {p.name: p.read_bytes() for p in live.iterdir()} if live.is_dir() else {}