Thor contract: [hwmon] title tag, clear notes, pre-check Thor, dedup_key, per-check switches for the move to thor #42

Open
opened 2026-11-25 19:34:56 -05:00 by jared · 0 comments
Owner

hwmonDaemon's side of the ticket contract and migration decided in the thor#1 planning session (2026-11-25). Full plan on LotusGuild/thor#1. Builds on #40 (the boundary). Tinker side: LotusGuild/tinker_tickets#123.

Contract in one paragraph

Each app tickets only its own evidence domain (hwmonDaemon: what only the host can read). The root cause owns the ticket, whichever app found it; symptoms become "Also seen" comments. Thor is the only correlator. Nobody closes tickets automatically.

Changes

  1. Title format with an app tag. New wiki standard: [source][auto][app][area] Summary [scope][environment][type].
    • e.g. [compute-storage-01][auto][hwmon][hardware] Drive WD-WCC4N2FYYCXP has SMART issues [single-node][production][problem]
    • Checked against Tinker's TicketHash.php: adding [hwmon] changes no existing hash, so it can ship first.
    • Description footer names hwmonDaemon.
  2. Clear notes. When a condition that opened a ticket is gone, add a "Cleared" comment (when, how long it lasted, last values), like Gandalf's recovery notes. Never change ticket status. Needs the comment API (api/ticket_comment_api.php, read_write key) and a little state to remember what was open.
  3. Pre-check Thor before host- or cluster-level tickets. GET http://<thor>/api/incidents/covering?host=X (or scope=cluster). If covered, comment on Thor's ticket instead. If Thor is down or slow (short timeout), open as normal: fail open. This is what stops the 2026-10-27 pattern, where one compute-storage-01 outage produced "1/3 mons down", "1 host (7 osds) down" and one "osd.N is DOWN" ticket per OSD in the same second.
  4. Send dedup_key once tinker_tickets#123 ships, e.g. drive:<serial>:smart, host:<host>:ecc, pbs:zfs:<pool>:state, and run the per-app backfill for open hwmonDaemon tickets at the same time.
  5. Per-check switches in /etc/hwmonDaemon/.env, so each check can be turned off on the day Thor takes it over (today only CEPH_ENABLED exists):
    • CPU_ENABLED, LXC_STORAGE_ENABLED, and one for the network reachability checks; keep CEPH_ENABLED.
    • Default on, so nothing changes until a switch is flipped.

Migration (how checks leave hwmonDaemon)

  • Order: memory, Ceph, LXC storage, CPU.
  • Memory: #39 is closed as superseded; memory is Thor's first check, so there's nothing to switch off here.
  • Per check: Thor runs it in shadow beside hwmonDaemon; when Thor's replay tests pass and the operator OKs the shadow output, in one change Thor goes live, adopts the open tickets, and the hwmonDaemon switch goes off. No gap, never two writers.
  • Ceph: Thor adopts the open tickets (673679581, 629475198, 534304596, 510172934) via the dedup_key backfill. Covers #29 / #35 per #40.
  • CPU: the "15 min load per core above 95%" rule is retired. Thor uses CPU pressure (PSI) over an hour instead. The months-old P4 CPU tickets get a note and the operator closes them.
  • LXC storage (#32): Thor reads root disks from the Proxmox API and mount points via pct df through Pulse; the Sia hostd rule (LXC_MANAGED_VOLUMES, CT 141) moves to Thor as a per-volume exception.
  • Network reachability checks ("Management network is unreachable", "Ceph network is unreachable") move to Gandalf (gandalf#66) and are switched off here once Gandalf covers them.

Stays in hwmonDaemon

SMART, NVMe wear, ECC/EDAC, the hardware event log, kernel hardware errors, disk firmware, PBS ZFS: everything only the box can read.

hwmonDaemon's side of the ticket contract and migration decided in the thor#1 planning session (2026-11-25). Full plan on LotusGuild/thor#1. Builds on #40 (the boundary). Tinker side: LotusGuild/tinker_tickets#123. ## Contract in one paragraph Each app tickets only its own evidence domain (hwmonDaemon: what only the host can read). The root cause owns the ticket, whichever app found it; symptoms become "Also seen" comments. Thor is the only correlator. Nobody closes tickets automatically. ## Changes 1. **Title format with an app tag.** New wiki standard: `[source][auto][app][area] Summary [scope][environment][type]`. - e.g. `[compute-storage-01][auto][hwmon][hardware] Drive WD-WCC4N2FYYCXP has SMART issues [single-node][production][problem]` - Checked against Tinker's `TicketHash.php`: adding `[hwmon]` changes no existing hash, so it can ship first. - Description footer names hwmonDaemon. 2. **Clear notes.** When a condition that opened a ticket is gone, add a "Cleared" comment (when, how long it lasted, last values), like Gandalf's recovery notes. Never change ticket status. Needs the comment API (`api/ticket_comment_api.php`, `read_write` key) and a little state to remember what was open. 3. **Pre-check Thor before host- or cluster-level tickets.** `GET http://<thor>/api/incidents/covering?host=X` (or `scope=cluster`). If covered, comment on Thor's ticket instead. If Thor is down or slow (short timeout), open as normal: **fail open**. This is what stops the 2026-10-27 pattern, where one compute-storage-01 outage produced "1/3 mons down", "1 host (7 osds) down" and one "osd.N is DOWN" ticket per OSD in the same second. 4. **Send `dedup_key`** once tinker_tickets#123 ships, e.g. `drive:<serial>:smart`, `host:<host>:ecc`, `pbs:zfs:<pool>:state`, and run the per-app backfill for open hwmonDaemon tickets at the same time. 5. **Per-check switches** in `/etc/hwmonDaemon/.env`, so each check can be turned off on the day Thor takes it over (today only `CEPH_ENABLED` exists): - `CPU_ENABLED`, `LXC_STORAGE_ENABLED`, and one for the network reachability checks; keep `CEPH_ENABLED`. - Default on, so nothing changes until a switch is flipped. ## Migration (how checks leave hwmonDaemon) - **Order:** memory, Ceph, LXC storage, CPU. - **Memory:** #39 is closed as superseded; memory is Thor's first check, so there's nothing to switch off here. - **Per check:** Thor runs it in shadow beside hwmonDaemon; when Thor's replay tests pass and the operator OKs the shadow output, in one change Thor goes live, adopts the open tickets, and the hwmonDaemon switch goes off. No gap, never two writers. - **Ceph:** Thor adopts the open tickets (673679581, 629475198, 534304596, 510172934) via the dedup_key backfill. Covers #29 / #35 per #40. - **CPU:** the "15 min load per core above 95%" rule is retired. Thor uses CPU pressure (PSI) over an hour instead. The months-old P4 CPU tickets get a note and the operator closes them. - **LXC storage (#32):** Thor reads root disks from the Proxmox API and mount points via `pct df` through Pulse; the Sia hostd rule (`LXC_MANAGED_VOLUMES`, CT 141) moves to Thor as a per-volume exception. - **Network reachability checks** ("Management network is unreachable", "Ceph network is unreachable") move to Gandalf (gandalf#66) and are switched off here once Gandalf covers them. ## Stays in hwmonDaemon SMART, NVMe wear, ECC/EDAC, the hardware event log, kernel hardware errors, disk firmware, PBS ZFS: everything only the box can read.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/hwmonDaemon#42