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
Retain NAS recovery when a live Unraid boot shell owns pending commands
pulse-triage[bot]5dad23185285
diff --git a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md b/docs/release-control/v6/internal/subsystems/agent-lifecycle.mdindex 36ab893d03..5745688a9e 100644--- a/docs/release-control/v6/internal/subsystems/agent-lifecycle.md+++ b/docs/release-control/v6/internal/subsystems/agent-lifecycle.md@@ -41,8 +41,9 @@ Complete bounded kernel evidence returns only numeric IDs and roles. Only exactselected watchdog/collector processes receive checked TERM, watchdog first,with independent absence observations. Editor sessions, backup wrappers andco-installed names are not targets. Relative/foreign same-name processes or-unattributable QNAP deferred autorun shells refuse instead of signalling another-boot owner. Failed/diagnostic/duplicate/empty reads and ignored/refused signals+unattributable QNAP deferred autorun or live Unraid go shells refuse instead+of signalling another boot owner. A live go shell may already hold later boot+commands in memory; editing its file cannot establish quiescence. Failed/diagnostic/duplicate/empty reads and ignored/refused signalsretain identity, credentials, trust and recoverable files. QNAP mount andunmount each have checked bounded results, including cleanup after partial mount.@@ -54,7 +55,7 @@ Unraid directories. Successful/absent/repeated removal still requires completefresh observations. No automatic restart, credential churn or transport-policychange follows a partial operation.-`TestInstallSHNASBootOwnersQuiesceBeforeRecoveryErasure` requires all seventeen+`TestInstallSHNASBootOwnersQuiesceBeforeRecoveryErasure` requires all eighteenactual-function/full-uninstall caller controls in `agent_nas_teardown.py`. Theboot filesystem transformations are real private user operations; flash/kernelfaults are closed models. Two generated watchdog/child controls use real privatediff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex c083060b4a..a9fe8cfe48 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -42,8 +42,9 @@ Complete bounded kernel evidence returns only numeric IDs and roles. Only exactselected watchdog/collector processes receive checked TERM, watchdog first,with independent absence observations. Editor sessions, backup wrappers andco-installed names are not targets. Relative/foreign same-name processes or-unattributable QNAP deferred autorun shells refuse instead of signalling another-boot owner. Failed/diagnostic/duplicate/empty reads and ignored/refused signals+unattributable QNAP deferred autorun or live Unraid go shells refuse instead+of signalling another boot owner. A live go shell may already hold later boot+commands in memory; editing its file cannot establish quiescence. Failed/diagnostic/duplicate/empty reads and ignored/refused signalsretain identity, credentials, trust and recoverable files. QNAP mount andunmount each have checked bounded results, including cleanup after partial mount.@@ -55,7 +56,7 @@ Unraid directories. Successful/absent/repeated removal still requires completefresh observations. No automatic restart, credential churn or transport-policychange follows a partial operation.-`TestInstallSHNASBootOwnersQuiesceBeforeRecoveryErasure` requires all seventeen+`TestInstallSHNASBootOwnersQuiesceBeforeRecoveryErasure` requires all eighteenactual-function/full-uninstall caller controls in `agent_nas_teardown.py`. Theboot filesystem transformations are real private user operations; flash/kernelfaults are closed models. Two generated watchdog/child controls use real privatediff --git a/scripts/install.sh b/scripts/install.shindex 1103b644c3..39544a3cbe 100755--- a/scripts/install.sh+++ b/scripts/install.sh@@ -4068,6 +4068,7 @@ read_nas_agent_removal_processes() {if [[ "$args" == "$wrapper" || "$args" == "$wrapper "* ]]; then role=watchdog; fiif [[ "$role" != watchdog && "$args" =~ start-pulse-agent\.sh([[:space:]]|$) ]]; then role=unknown; fiif [[ "$platform" == QNAP && "$args" == *'/nasconfig_tmp/autorun.sh'* ]]; then role=unknown; fi+ if [[ "$platform" == Unraid && "$args" == *'/boot/config/go'* ]]; then role=unknown; fi;;esacrows+=("$pid $parent $role"); count=$((count + 1))diff --git a/scripts/installtests/agent_nas_teardown.py b/scripts/installtests/agent_nas_teardown.pyindex d9e20e0dcb..34e9121c24 100644--- a/scripts/installtests/agent_nas_teardown.py+++ b/scripts/installtests/agent_nas_teardown.py@@ -74,6 +74,7 @@ if role == 'ps':if fault == 'foreign-process': print('102 1 pulse-agent /other/instance/pulse-agent --token-file /synthetic/private-only')if fault == 'relative-wrapper': print('103 1 sh sh start-pulse-agent.sh')if fault == 'deferred-bootstrap': print('104 1 sh /bin/sh /tmp/nasconfig_tmp/autorun.sh')+ if fault == 'live-go': print('105 1 bash /bin/bash ' + str(root / 'go'))print('200 1 vi vi ' + wrapper) # Editor is not a watchdog or signal target.print('201 1 sh /bin/sh ' + wrapper + '.bak')print('202 1 pulse-agent-prod /other/pulse-agent-prod')@@ -366,6 +367,10 @@ remove_safe_profile_state_dir() { rm -rf -- "$SAFE_PROFILE_STATE_DIR"; }self.assertNotIn('/synthetic/private-only', r[0].stdout); self.assertIn('200 1 other\n', r[0].stdout)r = self.exercise('QNAP', 'timeout-process'); self.retained(r); self.assertTrue(r[9])+ def test_live_unraid_boot_shell_is_unknown_not_a_signal_target(self):+ r = self.exercise('Unraid', 'live-go'); events = self.retained(r)+ self.assertEqual(r[6], r[7]); self.assertFalse(any(e.startswith('signal:') for e in events))+def test_recovered_ordinary_linux_state_is_not_qnap_platform_authority(self):r = self.exercise('QNAP', appliance=False)self.assertEqual(r[0].returncode, 0, r[0].stderr)diff --git a/scripts/installtests/install_sh_test.go b/scripts/installtests/install_sh_test.goindex 42297d5b3d..14a1b81ee9 100644--- a/scripts/installtests/install_sh_test.go+++ b/scripts/installtests/install_sh_test.go@@ -8568,6 +8568,7 @@ func TestInstallSHNASBootOwnersQuiesceBeforeRecoveryErasure(t *testing.T) {"test_absent_missing_and_repeated_removal_require_fresh_quiescence","test_process_observation_returns_roles_not_arguments_and_stops_timeout_child","test_recovered_ordinary_linux_state_is_not_qnap_platform_authority",+ "test_live_unraid_boot_shell_is_unknown_not_a_signal_target","test_actual_generated_watchdogs_and_children_become_quiescent","test_caller_has_no_blanket_nas_or_legacy_tree_deletion",} {@@ -8575,7 +8576,7 @@ func TestInstallSHNASBootOwnersQuiesceBeforeRecoveryErasure(t *testing.T) {t.Fatalf("NAS removal control %s did not pass:\n%s", name, output)}}- if !strings.Contains(string(output), "\nRan 17 tests in ") || !strings.Contains(string(output), "\nOK\n") {+ if !strings.Contains(string(output), "\nRan 18 tests in ") || !strings.Contains(string(output), "\nOK\n") {t.Fatalf("incomplete NAS removal verdict:\n%s", output)}t.Logf("%s", output)