Commit Graph

24 Commits

Author SHA1 Message Date
pulse-triage[bot]
bd0220d6be Keep guest OS discovery eligible when its caller budget ends
An exhausted caller context can reach metadata enrichment after its network read completes. Invoking the OS callback with that ended budget records a failure even though no OS command started; repeated polls then permanently suppress OS discovery. Refuse callbacks once their caller budget has ended and retain explicit unstarted evidence, without reclassifying any started command outcome. Exercise both HTTP clients, ordinary collectors, expired and cancelled contexts, cold and retained identity, real rejection suppression and independent readings.

Contract-Neutral: Preserve existing guest read/publication, backoff and OS-command suppression contracts; distinguish an unstarted local callback without changing wire, lock, uncertainty, TLS or retention policy.
Change-source: pulse-maintainer
2026-10-12 23:33:44 +01:00
pulse-triage[bot]
58d4920de4 Scope guest safety retirement to its exact PVE connection
A connection label can contain the metadata-key delimiter. Retiring site must not cancel reads or erase OS-command suppression, backoff and diagnostic origins for site|other. Read metadata ownership from its fixed suffixes and use each diagnostic record's exact Instance. Exercise cached, in-flight and ordinary HTTP collector paths with unrelated labels.

Contract-Neutral: Preserve existing connection-isolated retirement; internal cache ownership only, with no public wire, endpoint, TTL, guest-command completion, backup-lock or TLS policy delta.
Change-source: pulse-maintainer
2026-10-12 22:14:37 +01:00
pulse-triage[bot]
63756a7017 Keep guest OS discovery eligible after rate refusals
Treat only an observed HTTP 429 as a temporary request refusal, preserving metadata backoff and real command-safety suppression. Cover ordinary clients and collectors, stale identity, Windows recovery and quoted-status negative controls.

Change-source: pulse-maintainer
Contract-Neutral: Existing OS-command suppression classification only; no public wire shape, capability, deadline, retention or guest-command safety delta.
2026-10-12 21:24:39 +01:00
pulse-triage[bot]
6d7054cde2 Bind guest memory samples to the active read lifecycle
Invalidate successful and negative QGA memory caches on guest unavailability, observed stops and connection retirement. Retain and cancel obsolete read owners until completion, discard late/cancelled samples and coalesce overlapping refreshes without weakening transport uncertainty. Verify both collectors, served readings, History and independent linked-agent evidence.

Change-source: pulse-maintainer
2026-10-12 06:35:03 +01:00
pulse-triage[bot]
2488be4e17 Discard guest metadata from invalidated fetch lifecycles
Cancel obsolete enrichment contexts on explicit cache invalidation and PVE instance retirement while retaining ownership until completion. Serialize publication and retry scheduling with invalidation, re-read fallback metadata within the reservation, and discard late network, OS and version outcomes without weakening shared guest-command uncertainty fences. Cover late readers, slot waiting, direct/cluster HTTP cancellation and ordinary independent recovery.

Change-source: pulse-maintainer
2026-10-12 04:18:02 +01:00
pulse-triage[bot]
96dc74860a Keep active guest command-safety state through metadata cleanup
Separate metadata-cache activity from successful observation age so empty or failing guest reads cannot erase OS-info suppression or its accumulated failures. Preserve useful and OS evidence ages, ordinary backoff and guest-command fences; expire only idle non-in-flight state and clean activity on explicit invalidation and instance retirement.

Change-source: pulse-maintainer
2026-10-12 03:20:30 +01:00
pulse-triage[bot]
3caea610ed Keep guest OS discovery eligible after temporary rejections
Do not count actual access refusals or exact stopped-QGA replies as failures of guest-get-osinfo. Preserve prior command failures, unsupported-command suppression, normal refresh backoff and all backup/uncertainty fences. Cover ordinary cold and retained identity recovery through both collectors and HTTP client paths.

Change-source: pulse-maintainer
2026-10-12 02:31:47 +01:00
pulse-triage[bot]
84facf27bb Avoid Linux-only memory reads on observed Windows guests
Bound Windows memory-read suppression to an actual same-guest OS reply and its original age. Preserve unknown/Linux compatibility, independent readings and every-command backup locks; retain accepted OS admission evidence across later metadata deferral without publishing partial identity. Exercise real QGA-only polling, History and recovery alongside source-age and cache controls.

Change-source: pulse-maintainer
2026-10-09 19:17:27 +01:00
pulse-triage[bot]
eb2424037d Keep QGA fallback eligibility bound to its original observation
Retained guest identity can survive a cancelled detail cycle or failed metadata refresh. Keep its original eligibility time through canonical snapshots instead of borrowing each VM poll timestamp, and preserve ordinary current-read recovery and the existing guest-command safety fences.

Change-source: pulse-maintainer
2026-10-09 16:36:19 +01:00
pulse-triage[bot]
5c3d18e248 Keep guest primary addresses associated with their interfaces
Prefer named guest interfaces over local container networks instead of globally sorting flattened IP text. Preserve all secondary and unknown addresses, management interfaces, warm metadata caches, explicit agent report IPs and machine identity. Cover LXC status/config/runtime fallback, QEMU metadata and canonical list/broadcast projection for issue #2757.

Change-source: pulse-maintainer
2026-10-09 13:07:08 +01:00
pulse-triage[bot]
36b406ed19 Synchronise guest refresh and poll backoff randomness
Use a dedicated shared mutex for every monitor random-source access, including lazy poll-backoff initialisation. Preserve the existing seeded jitter, intervals and nil-source metadata policy. Cover deterministic source ownership, mixed concurrent access and independent real HTTP guest enrichment.

Contract-Neutral: Correct internal random-source ownership without changing public interfaces, refresh or backoff durations, distributions, guest commands, lock checks or uncertainty fences.
Change-source: pulse-maintainer
2026-10-07 20:18:29 +01:00
pulse-triage[bot]
ec4ee724de Reset obsolete guest metadata scheduling on invalidation
The broad guest lifecycle proof caught a recovery regression when a known unavailable agent deliberately invalidated its cache. Clear that key’s obsolete refresh/backoff deadline without clearing active fetch ownership, independent installations or Proxmox uncertainty. Retain immediate available-poll recovery and early-failure backoff as distinct paths.

Contract-Neutral: Preserve existing recovery on deliberate guest metadata cache invalidation; no guest lock, uncertainty, command, public API, configuration or duration changes.
Change-source: pulse-maintainer
2026-10-07 19:47:50 +01:00
pulse-triage[bot]
9b77a4b6c6 Keep guest metadata fetch ownership through completion
Honour cold-cache retry backoff and retain a per-key in-flight reservation until enrichment returns, rather than treating a timed hold as completion. Avoid duplicate command sequences and stale safety-state writers while preserving existing lock, uncertainty, observation and refresh policies. Cover blocked real HTTP reads, early deferral, slot cancellation and ordinary recovery.

Contract-Neutral: Restore the existing per-key metadata reservation and retry scheduling semantics; no public API, configuration, guest command, lock, uncertainty fence, observation or numeric duration changes.
Change-source: pulse-maintainer
2026-10-07 19:39:32 +01:00
pulse-triage[bot]
7cea42a4c1 Retain guest OS-info suppression across later command deferral
Preserve completed OS-info failure or reset state when a subsequent version read pauses. Keep partial identity and observation age unchanged, honour retry backoff, and cover cold/retained caches and both HTTP poll entry points without native guest or backup changes.

Contract-Neutral: Restore existing OS-info negative-cache semantics across version deferral; no public API, configuration, admission, pause or observation contract changes. Dedicated source tests and contract clarification accompany the fix.
Change-source: pulse-maintainer
2026-10-07 18:05:31 +01:00
pulse-triage[bot]
7b5cdfc5c3 Read guest filesystems before optional QGA enrichment
Prevent optional Linux memory and metadata failures from starving supported filesystem usage. Carry shared admission deferral independently of a completed disk sample. Preserve backup locks, uncertain completion, no replay and original observation ages; bind both poll paths and truthful History to connected controls. This is source repair, not a native discussion #2538 cause or installed recovery.

Change-source: pulse-maintainer
2026-10-06 00:30:02 +01:00
pulse-triage[bot]
f1e221a0fb Keep failed guest metadata refreshes from renewing evidence
Retain metadata values and the last useful observation time through failed, empty and unusable refreshes. Apply the existing retry backoff separately instead of making retained identity new guest-agent evidence or a fresh complete-cache hit. Preserve useful partial responses, normal cache hits and OS failure policy, with HTTP polling and recovery controls.

Contract-Neutral: Behavioural correction to existing guest metadata observation timestamps and retry scheduling; no schema, API, route, field, guest command, admission, duration, retention or numeric source-selection contract delta.
Change-source: pulse-maintainer
2026-10-04 23:34:19 +01:00
pulse-triage[bot]
2df28d5877 Defer and coordinate Proxmox guest-agent reads around backup locks
Check every QGA read against fresh VM config locks, coordinate configured endpoint aliases and VM migration, discard in-flight backup payloads and cool down uncertain completions without retries. Preserve labelled cache evidence and keep carried samples out of History. Includes real-client monitoring, memory and counter provenance controls; native freeze/thaw acceptance remains separate. Refs #2439.

Change-source: pulse-maintainer
2026-10-03 13:58:05 +01:00
rcourtman
bd6f77e093 Prepare v6.0.0 release candidate
Tighten v5-to-v6 upgrade safety, release installability, provider MSP mode handling, AI cost accounting, metrics flushing, and frontend guardrails for the v6.0.0 GA candidate.
2026-06-04 14:07:14 +01:00
rcourtman
d7225a45a0 Fix Proxmox guest memory fallbacks
Also fixes Ceph pool threshold resource identity.

Refs #1341
2026-05-05 14:59:29 +01:00
rcourtman
4ceb3ad433 Preserve guest-agent continuity across transient PVE status failures 2026-04-01 18:38:42 +01:00
rcourtman
c5f5af7abf Forward-port Proxmox monitoring fixes from v5 2026-04-01 11:51:19 +01:00
rcourtman
778a2577b6 feat: Pulse v6 release 2026-03-18 16:06:30 +00:00
rcourtman
ff1bbe2fb8 Guard per-VM guest agent calls with timeout and panic recovery (#1319)
A broken or hung qemu-agent on one VM could stall the entire polling
loop, preventing higher-VMID VMs from being detected. Wrap all guest
agent work in a 10s per-VM budget with panic recovery, and add a 2s
timeout to GetVMStatus in the efficient poller to match the legacy path.
2026-03-07 22:30:18 +00:00
rcourtman
4122fc6c9b refactor: Extract guest metadata functions to separate file
Move 17 guest-metadata-related functions from monitor.go to new
guest_metadata.go file. This includes:
- Guest agent API call retry logic
- Guest metadata caching (fetch, reserve, schedule, clear)
- Network interface processing and cloning
- OS info extraction
- Type conversion utilities (stringValue, anyToInt64)

Reduces monitor.go by 541 lines (8932 → 8391).
2025-12-01 10:53:41 +00:00