mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 18:43:38 +01:00
Document Windows .tmp update recovery and vSphere stale banner in Help
Document why Windows agent auto-updates can fail with Access is denied when probing a staged pulse-agent-*.tmp file, how to update in place via Agent Doctor (install.ps1) while keeping saved identity and TLS checks, and that private/self-signed HTTPS certificates must be trusted in the Windows Local Machine root store for the Windows service. Also document the page-level stale-reading banner on VMware Overview and Health in docs/FAQ.md, sync the shipped Help mirrors, and bind both additions to source in scripts/tests/test_stale_reading_help_docs.py. Contract-Neutral: Documentation and source-bound doc-consistency tests only; no runtime, API, UI component, or persisted-state changes. Change-source: pulse-maintainer
This commit is contained in:
@@ -470,7 +470,13 @@ does not prove that every reading is fresh. Missing or unavailable is not zero.
|
||||
the last report received and newer vCenter tasks or events may be missing.`,
|
||||
search matches stale labels and collection errors on vSphere, TrueNAS and
|
||||
Docker alert/activity tables, and stale notices clear automatically when live
|
||||
updates resume. On **TrueNAS → Overview**, when TrueNAS has stopped updating
|
||||
updates resume. On **VMware → Overview** and **VMware → Health**, when any
|
||||
vCenter sighting is confirmed stale (without treating unknown or pending
|
||||
sightings as stale), a page-level banner (**Some vSphere health readings are
|
||||
stale**: `New alarms may be missing, and older alarms may still be listed.
|
||||
Check collection status for your vCenter connections in Settings.`) appears
|
||||
above the tables while preserving existing alarm severity, age, and detail.
|
||||
On **TrueNAS → Overview**, when TrueNAS has stopped updating
|
||||
readings used by the visible **Systems** or **Health Alerts** tables, a
|
||||
page-level banner (**Some TrueNAS readings are stale**: `An online Pulse
|
||||
agent does not confirm that TrueNAS is still updating. Health alerts may be
|
||||
|
||||
@@ -1590,6 +1590,18 @@ or repeat an update to fill the gap.
|
||||
through its original writable handle before closing rather than reopening it
|
||||
for write after identity and self-tests, while still refusing replacement if
|
||||
flushing fails.
|
||||
On Windows, `downloaded executable --version failed` with `Access is denied`
|
||||
on a `pulse-agent-*.tmp` path means the updater verified the download and
|
||||
then tried to run `--version` on the temporary `.tmp` file in the install
|
||||
directory, which endpoint protection or execution policy blocked. Keep
|
||||
endpoint protection and TLS verification enabled. To update that host in
|
||||
place without losing its saved identity or token, run the Windows update
|
||||
command from **Settings → Infrastructure → Agent Doctor** (which uses
|
||||
`install.ps1` to prepare a `.exe` binary before replacing the service). If
|
||||
Pulse uses a verified private or self-signed HTTPS certificate, trust it in
|
||||
the Windows **Local Machine** Trusted Root Certification Authorities store
|
||||
rather than only the current user's store, because the Pulse agent runs as a
|
||||
Windows service.
|
||||
3. **Activation, restart or rollback:** an accepted download or staged artifact
|
||||
is not a completed update. Preserve the original result and any rollback
|
||||
error, then compare fresh reporting from that same host with the intended
|
||||
|
||||
@@ -470,7 +470,13 @@ does not prove that every reading is fresh. Missing or unavailable is not zero.
|
||||
the last report received and newer vCenter tasks or events may be missing.`,
|
||||
search matches stale labels and collection errors on vSphere, TrueNAS and
|
||||
Docker alert/activity tables, and stale notices clear automatically when live
|
||||
updates resume. On **TrueNAS → Overview**, when TrueNAS has stopped updating
|
||||
updates resume. On **VMware → Overview** and **VMware → Health**, when any
|
||||
vCenter sighting is confirmed stale (without treating unknown or pending
|
||||
sightings as stale), a page-level banner (**Some vSphere health readings are
|
||||
stale**: `New alarms may be missing, and older alarms may still be listed.
|
||||
Check collection status for your vCenter connections in Settings.`) appears
|
||||
above the tables while preserving existing alarm severity, age, and detail.
|
||||
On **TrueNAS → Overview**, when TrueNAS has stopped updating
|
||||
readings used by the visible **Systems** or **Health Alerts** tables, a
|
||||
page-level banner (**Some TrueNAS readings are stale**: `An online Pulse
|
||||
agent does not confirm that TrueNAS is still updating. Health alerts may be
|
||||
|
||||
@@ -1590,6 +1590,18 @@ or repeat an update to fill the gap.
|
||||
through its original writable handle before closing rather than reopening it
|
||||
for write after identity and self-tests, while still refusing replacement if
|
||||
flushing fails.
|
||||
On Windows, `downloaded executable --version failed` with `Access is denied`
|
||||
on a `pulse-agent-*.tmp` path means the updater verified the download and
|
||||
then tried to run `--version` on the temporary `.tmp` file in the install
|
||||
directory, which endpoint protection or execution policy blocked. Keep
|
||||
endpoint protection and TLS verification enabled. To update that host in
|
||||
place without losing its saved identity or token, run the Windows update
|
||||
command from **Settings → Infrastructure → Agent Doctor** (which uses
|
||||
`install.ps1` to prepare a `.exe` binary before replacing the service). If
|
||||
Pulse uses a verified private or self-signed HTTPS certificate, trust it in
|
||||
the Windows **Local Machine** Trusted Root Certification Authorities store
|
||||
rather than only the current user's store, because the Pulse agent runs as a
|
||||
Windows service.
|
||||
3. **Activation, restart or rollback:** an accepted download or staged artifact
|
||||
is not a completed update. Preserve the original result and any rollback
|
||||
error, then compare fresh reporting from that same host with the intended
|
||||
|
||||
@@ -1204,6 +1204,61 @@ class StaleReadingAndAgentHelpDocsTest(unittest.TestCase):
|
||||
with self.subTest(source="useStoragePageModel.ts", marker=marker):
|
||||
self.assertIn(marker, storage_model)
|
||||
|
||||
def test_faq_documents_vsphere_overview_and_health_stale_banner(self):
|
||||
faq = norm(
|
||||
doc_text("docs/FAQ.md")
|
||||
.split("### No data showing?\n", 1)[1]
|
||||
.split("\n### ", 1)[0]
|
||||
)
|
||||
for phrase in (
|
||||
"**VMware → Overview** and **VMware → Health**",
|
||||
"**Some vSphere health readings are stale**",
|
||||
"`New alarms may be missing, and older alarms may still be listed. Check collection status for your vCenter connections in Settings.`",
|
||||
"without treating unknown or pending sightings as stale",
|
||||
"preserving existing alarm severity, age, and detail",
|
||||
):
|
||||
with self.subTest(doc="FAQ.md", phrase=phrase):
|
||||
self.assertIn(phrase, faq)
|
||||
|
||||
vmware_surface = doc_text(
|
||||
"frontend-modern/src/features/vmware/VmwarePageSurface.tsx"
|
||||
)
|
||||
for marker in (
|
||||
"(activeTab() === 'overview' || activeTab() === 'health')",
|
||||
"getResourceSourceStatus(resource, VMWARE_PLATFORM_FILTER)?.status === 'stale'",
|
||||
"Some vSphere health readings are stale",
|
||||
"New alarms may be missing, and older alarms may still be listed. Check collection",
|
||||
"status for your vCenter connections in Settings.",
|
||||
):
|
||||
with self.subTest(source="VmwarePageSurface.tsx", marker=marker):
|
||||
self.assertIn(marker, vmware_surface)
|
||||
|
||||
def test_unified_agent_documents_windows_tmp_probe_access_denied_recovery(self):
|
||||
agent_doc = norm(
|
||||
doc_text("docs/UNIFIED_AGENT.md")
|
||||
.split("### Agent Not Updating\n", 1)[1]
|
||||
.split("\n### ", 1)[0]
|
||||
)
|
||||
for phrase in (
|
||||
"`downloaded executable --version failed` with `Access is denied` on a `pulse-agent-*.tmp` path",
|
||||
"Keep endpoint protection and TLS verification enabled.",
|
||||
"**Settings → Infrastructure → Agent Doctor**",
|
||||
"`install.ps1` to prepare a `.exe` binary before replacing the service",
|
||||
"**Local Machine** Trusted Root Certification Authorities store",
|
||||
"Pulse agent runs as a Windows service",
|
||||
):
|
||||
with self.subTest(doc="UNIFIED_AGENT.md", phrase=phrase):
|
||||
self.assertIn(phrase, agent_doc)
|
||||
|
||||
update_go = doc_text("internal/agentupdate/update.go")
|
||||
self.assertIn('createTempFn(targetDir, agentName+"-*.tmp")', update_go)
|
||||
|
||||
identity_go = doc_text("internal/agentupdate/identity.go")
|
||||
self.assertIn('downloaded executable %s failed: %w', identity_go)
|
||||
|
||||
install_ps1 = doc_text("scripts/install.ps1")
|
||||
self.assertIn("'.pulse-agent-' + [Guid]::NewGuid().ToString('N') + '.exe'", install_ps1)
|
||||
|
||||
def test_shipped_public_docs_mirrors_match_byte_for_byte(self):
|
||||
for name in (
|
||||
"AGENT_SECURITY.md",
|
||||
|
||||
Reference in New Issue
Block a user