Phase 2: Ceph health as tickets (shadow), and a Rules page #14

Merged
jared merged 1 commits from ceph-check into main 2026-11-27 12:29:21 -05:00
1 Commits
Author SHA1 Message Date
jaredandClaude Opus 5.5 f914fb7e46 Phase 2: Ceph health as tickets (shadow), and a Rules page
CI / Test (pytest) (pull_request) Successful in 1m16s
CI / Lint (flake8, house style) (pull_request) Successful in 1m18s
CI / Security (bandit, pip-audit) (pull_request) Successful in 1m25s
CI / Integration (MariaDB) (pull_request) Successful in 2m10s
CI / Scan (secrets, workflows, shell, patterns) (pull_request) Successful in 1m14s
CI / UI (screenshots) (pull_request) Successful in 1m43s
CI / Deploy (pull_request) Skipped
Ceph moves from hwmonDaemon to Thor (thor#3, decisions in comment 7206).
One incident per Ceph health code (cluster:ceph:<CODE>), down OSDs per host
(host:<host>:osd_down), cluster flags left set 24 h (cluster:ceph_flag:<flag>),
mon quorum, and a 60-day nearfull forecast. Priorities and timing come from
one rules table in thor/checks/ceph.py, which the new /rules page renders.

Engine:
- per-incident timing (hold_s / clear_s): a P3 waits 15 min, a P4 2 h and
  clears after 6 h quiet; one that stops before then is dropped unsent;
- standing warnings (explains False) never explain or cover anything, and
  don't keep a cause open when filed under it (extends False);
- a host cause on a Ceph host can explain cluster-wide Ceph fallout;
- a warning that outlasts the cause it was filed under becomes its own,
  timed from when that cause cleared;
- known conditions match a flag by name (noout -> 693930698).

Also: the incident page no longer shows an attached ticket as Thor's
(same bug as #12, in the view), and the replays keep their incident
assertions with standing Ceph problems checked separately. Fixtures gained
the new Ceph series only (--ceph-only), so no Loki data was re-recorded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-27 12:20:53 -05:00