host_health_rca
Identify and prioritize KVM host issues by combining status, update flags, and recent warning events. Get ranked findings with signal, cause, and action to guide remediation.
Instructions
[READ] What needs attention on KVM hosts, ranked worst first, in one call.
Combines host status and status detail, reinstall/update flags and recent
warning-or-worse events that name a host. Each finding has signal (what was
measured), cause, action and rank. Hosts that the engine is installing or
rebooting are reported as in progress, not failed; alert 9000 (power management
not verifiable) is informational on hosts without fencing hardware. A failed
guest-agent call (event 10802, a command starting with VmLogon or VmLogoff whose
message names the guest agent) is a problem of a guest, not of the host that ran the
call: it is reported low and carries vmCandidates, the VMs the engine reports on
that host. The same command failing for another reason stays a host finding. The event names no
VM, so present those as candidates to check, never as the affected VM; if that
envelope has an error, or scanTruncated is true, say the candidate list is
incomplete. Every event-10802 finding reports one vdsm command rather than the host's
own state, so its cause names the command; do not restate it as "this host is
failing" unless the host's status, external status or flags say so. It also carries
relatedVmEvents: the VM-level failures the engine logged within windowSeconds on
this host, which is where the operation's own failure is recorded (vm_health_rca
reports that half). They are paired on time alone — say "possibly the same operation",
never that the host finding is about a named VM; an empty list means none was logged,
not that none was looked for. Report findings in rank order and quote their signal.
Args: events_limit: Recent warning-or-worse events to correlate, 1-1000 (default 200). events_window_hours: Ignore events older than this many hours, 1-720 (default 24); older ones are counted in eventsOutsideWindow. target: Engine target name from config; omit to use the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| events_limit | No | ||
| events_window_hours | No |