Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Capture blocked demo startup stack

pulse-triage[bot]2bf37a58c79f
diff --git a/.github/scripts/recover-demo-runtime.sh b/.github/scripts/recover-demo-runtime.sh
index 0ea231c761..ad5689eb3a 100755
--- a/.github/scripts/recover-demo-runtime.sh
+++ b/.github/scripts/recover-demo-runtime.sh
@@ -244,8 +244,18 @@ fi
rollback_on_error() {
local rc=$?
+ local failed_pid
trap - ERR
if [ "$MUTATED" = true ]; then
+ failed_pid="$(systemctl show "$SERVICE_NAME" --property=MainPID --value || true)"
+ if [[ "$failed_pid" =~ ^[1-9][0-9]*$ ]] && sudo kill -0 "$failed_pid" 2>/dev/null; then
+ # The HTTP listener never opened, so pprof is unavailable. SIGQUIT gives
+ # one bounded Go goroutine dump in the service journal before the already
+ # failed process is stopped; it does not widen recovery to any other unit.
+ log "capturing failed Pulse startup goroutines before compensation"
+ sudo kill -QUIT "$failed_pid" || true
+ sleep 2
+ fi
log "recovery validation failed; compensating by stopping only pulse.service"
sudo systemctl stop "$SERVICE_NAME" || true
restore_runtime_config || true
diff --git a/.github/workflows/recover-demo-server.yml b/.github/workflows/recover-demo-server.yml
index 1a712775fa..6c000ac24a 100644
--- a/.github/workflows/recover-demo-server.yml
+++ b/.github/workflows/recover-demo-server.yml
@@ -146,6 +146,13 @@ jobs:
-e 's/(Bearer )[A-Za-z0-9._-]+/\1[REDACTED]/g' \
-e 's/((token|secret|password|authorization|api[_-]?key)[^=: ]*[=: ][[:space:]]*)[^ ,"]+/\1[REDACTED]/Ig' \
|| true
+ printf '%s\n' '--- bounded recent service tail ---'
+ sudo journalctl -u pulse --since '-10 minutes' --no-pager -o cat \
+ | tail -400 \
+ | sed -E \
+ -e 's/(Bearer )[A-Za-z0-9._-]+/\1[REDACTED]/g' \
+ -e 's/((token|secret|password|authorization|api[_-]?key)[^=: ]*[=: ][[:space:]]*)[^ ,"]+/\1[REDACTED]/Ig' \
+ || true
EOF
cat demo-runtime-diagnostics.txt
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 5bd5e66877..f4f0bf4683 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -2043,7 +2043,10 @@ isolated local-development opt-in, and carrying it into the public demo can
block startup while its existing metrics database is synchronously backfilled.
Failed stable-demo recovery must also retain bounded, redacted service evidence:
structured systemd state, bounded process metadata, and only startup- or
-health-relevant recent journal lines. Diagnostics run after compensation-safe
+health-relevant recent journal lines. When the listener never opens, the
+recovery sends `SIGQUIT` only to the already-failed Pulse PID before stopping
+it, retaining a bounded Go goroutine dump instead of guessing which persisted
+store is blocking synchronous startup. Diagnostics run after compensation-safe
recovery failure, carry a hard SSH timeout, and remain part of the existing
14-day recovery artifact rather than widening the recovery mutation boundary.
diff --git a/scripts/release_control/release_promotion_policy_test.py b/scripts/release_control/release_promotion_policy_test.py
index 2deb6e9aa9..d6d83e6c44 100644
--- a/scripts/release_control/release_promotion_policy_test.py
+++ b/scripts/release_control/release_promotion_policy_test.py
@@ -2092,6 +2092,8 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn("Capture bounded Pulse failure diagnostics", workflow)
self.assertIn("demo-runtime-diagnostics.txt", workflow)
self.assertIn("journalctl -u pulse --since '-30 minutes'", workflow)
+ self.assertIn("journalctl -u pulse --since '-10 minutes'", workflow)
+ self.assertIn("tail -400", workflow)
self.assertIn("sudo systemctl stop pulse", workflow)
self.assertIn("Retain bounded recovery evidence", workflow)
self.assertNotIn("release-convergence.yml", workflow)
@@ -2119,6 +2121,7 @@ class ReleasePromotionPolicyTest(unittest.TestCase):
self.assertIn('set_env_value PULSE_MOCK_UPDATE_INTERVAL "$MOCK_UPDATE_INTERVAL"', recovery)
self.assertIn('sudo systemctl restart "$SERVICE_NAME"', recovery)
self.assertIn('sudo systemctl stop "$SERVICE_NAME"', recovery)
+ self.assertIn('sudo kill -QUIT "$failed_pid"', recovery)
self.assertIn('AFTER_RELAY_PID" = "$BEFORE_RELAY_PID', recovery)
self.assertIn('AFTER_BINARY_SHA" = "$BEFORE_BINARY_SHA', recovery)
self.assertIn('AFTER_UNIT_SHA" = "$BEFORE_UNIT_SHA', recovery)