Ceph moves from hwmonDaemon to Thor (thor#3), built from the decisions in thor#3 comment 7206. The ceph check runs in shadow: it sends nothing until the operator flips it in /etc/thor/thor.json, adopts 673679581 and 629475198, and turns CEPH_ENABLED off in hwmonDaemon in the same change. UI change: screenshots for review are in the "Thor UI review" artifact (top section, "PR 14"). CI's UI job also uploads the full set.
What Thor tickets now (all from one table, thor/checks/ceph.py)
cluster:ceph:<CODE>: one incident per Ceph health code, at the agreed priority.
host:<host>:osd_down: one per host that is up, listing its down OSDs. On a host that is down, fenced, rebooting or in maintenance, its down OSDs are "Also seen" there.
cluster:ceph_flag:<flag>: a flag set for 24 h. noout matches its known condition, so it becomes a note on 693930698, not a ticket.
cluster:ceph:MON_QUORUM: P1 when half or fewer monitors are in quorum.
cluster:ceph:forecast_nearfull: P4 when the fullest OSD reaches nearfull within 60 days at the 14-day trend. This is real today: osd.5 is at 83.5% against Ceph's 85%, and an OSD crossed it from 11-05 to 11-07.
Timing by priority:
Priority
Ticket after
Cleared after
P1, P2
one held cycle
15 min quiet
P3
15 min
15 min quiet
P4
2 h
6 h quiet
A warning that stops before its time is dropped unsent.
Detail lines come from Proxmox /cluster/ceph/status with the existing read-only token (which OSDs, which crashes). The ticket still opens if Proxmox doesn't answer.
Visible, not buried (operator's ask)
New Rules tab (/rules): every ticketing rule of every check, with priority, "ticket after", "cleared after", meaning, and the check's live or shadow badge. It is generated from the same tables the checks run on.
Incident pages: a Timing line linking to the Rules page, the rule's meaning, "What Ceph reports", and "first seen ... or earlier" when a warning was already on when Thor first looked.
Phone layout: each rule is a small card.
Engine changes
Per-incident hold and clear times (hold_s / clear_s). Every other check keeps today's one cycle and 15 min.
Standing warnings (explains False) never explain anything, and never make /covering true. Without this, Gandalf would have commented a host-down onto the BlueStore P4 once Ceph went live. Filed under a cause, they also don't keep it open (extends False).
Host causes and Ceph fallout: a host cause on an OSD host can explain cluster-wide Ceph fallout (T1: the OOM explains OSD_SLOW_PING_TIME_* and DB_DEVICE_STALLED_READ_ALERT).
Outlasting a cause: a warning that outlasts the cause it was filed under becomes its own incident, timed from that cause's clear.
Start times that don't slide: a warning on since before the check's lookback keeps its earliest start, so its "since" doesn't slide forward and re-send the ticket every 30 min. A replay caught this.
Bug fix: the incident page showed an attached ticket as Thor's (the #12 bug, in the view).
Replays (incident outcomes unchanged, except one item for you to decide)
Incident tickets:
T3: 1 ticket (fenced). Down OSDs, MON_DOWN, PG_DEGRADED, PG_AVAILABILITY and MDS are all "Also seen"; hwmonDaemon opened about 12 tickets for this.
T4: 1 (partition).
T2: 0, with MON_CLOCK_SKEW on the maintenance timeline.
DIMM: a note on 693930698, with its down OSDs and degraded PGs filed under the reboot.
Standing problems: warnings already on before each incident (BlueStore slow ops, the unarchived crash, noout, the nearfull trend) are their own standing problems and are asserted separately.
Fixtures: they only gained the new Ceph Prometheus series (record_fixture.py --ceph-only). No Loki data was re-recorded, since T3 is older than Loki may keep.
Decision needed: T1 now opens a second ticket
DB_DEVICE_STALLED_READ_ALERT switched on at 05:50 during the OOM loop (filed under it) and stayed on until 06:50, after the OOM cleared at 06:18.
By the per-code rules, a P3 that outlasts its cause by 15 minutes gets its own ticket, so a P3 opens at 06:34. Its text says it "carried on after that one cleared".
I think that's right: stalled DB reads half an hour after memory recovered is worth a look. The alternative is that a warning filed under a cause never gets its own ticket while it lasts. Tell me if you want that instead.
Not in this PR
The thor#3 view: parity with Proxmox, history, maintenance answers.
Adoption and go-live.
OSD_SLOW_PING_TIME ownership by Gandalf's network incident, which waits for gandalf#66.
Local: ruff and flake8 clean, 174 passed, 7 skipped (MariaDB, in CI).
Ceph moves from hwmonDaemon to Thor (thor#3), built from the decisions in thor#3 comment 7206. **The `ceph` check runs in shadow**: it sends nothing until the operator flips it in `/etc/thor/thor.json`, adopts 673679581 and 629475198, and turns `CEPH_ENABLED` off in hwmonDaemon in the same change. **UI change: screenshots for review** are in the "Thor UI review" artifact (top section, "PR 14"). CI's UI job also uploads the full set.
## What Thor tickets now (all from one table, `thor/checks/ceph.py`)
- **`cluster:ceph:<CODE>`:** one incident per Ceph health code, at the agreed priority.
- **`host:<host>:osd_down`:** one per host that is up, listing its down OSDs. On a host that is down, fenced, rebooting or in maintenance, its down OSDs are "Also seen" there.
- **`cluster:ceph_flag:<flag>`:** a flag set for 24 h. `noout` matches its known condition, so it becomes a note on 693930698, not a ticket.
- **`cluster:ceph:MON_QUORUM`:** P1 when half or fewer monitors are in quorum.
- **`cluster:ceph:forecast_nearfull`:** P4 when the fullest OSD reaches nearfull within 60 days at the 14-day trend. **This is real today:** osd.5 is at 83.5% against Ceph's 85%, and an OSD crossed it from 11-05 to 11-07.
- **Timing by priority:**
| Priority | Ticket after | Cleared after |
|---|---|---|
| P1, P2 | one held cycle | 15 min quiet |
| P3 | 15 min | 15 min quiet |
| P4 | 2 h | 6 h quiet |
A warning that stops before its time is dropped unsent.
- **Detail lines** come from Proxmox `/cluster/ceph/status` with the existing read-only token (which OSDs, which crashes). The ticket still opens if Proxmox doesn't answer.
## Visible, not buried (operator's ask)
- **New Rules tab (`/rules`):** every ticketing rule of every check, with priority, "ticket after", "cleared after", meaning, and the check's live or shadow badge. It is generated from the same tables the checks run on.
- **Incident pages:** a Timing line linking to the Rules page, the rule's meaning, "What Ceph reports", and "first seen ... or earlier" when a warning was already on when Thor first looked.
- **Phone layout:** each rule is a small card.
## Engine changes
- **Per-incident hold and clear times** (`hold_s` / `clear_s`). Every other check keeps today's one cycle and 15 min.
- **Standing warnings** (`explains` False) never explain anything, and **never make `/covering` true**. Without this, Gandalf would have commented a host-down onto the BlueStore P4 once Ceph went live. Filed under a cause, they also don't keep it open (`extends` False).
- **Host causes and Ceph fallout:** a host cause on an OSD host can explain cluster-wide Ceph fallout (T1: the OOM explains `OSD_SLOW_PING_TIME_*` and `DB_DEVICE_STALLED_READ_ALERT`).
- **Outlasting a cause:** a warning that outlasts the cause it was filed under becomes its own incident, timed from that cause's clear.
- **Start times that don't slide:** a warning on since before the check's lookback keeps its earliest start, so its "since" doesn't slide forward and re-send the ticket every 30 min. A replay caught this.
- **Bug fix:** the incident page showed an attached ticket as Thor's (the #12 bug, in the view).
## Replays (incident outcomes unchanged, except one item for you to decide)
- **Incident tickets:**
- **T3:** 1 ticket (fenced). Down OSDs, MON_DOWN, PG_DEGRADED, PG_AVAILABILITY and MDS are all "Also seen"; hwmonDaemon opened about 12 tickets for this.
- **T4:** 1 (partition).
- **T2:** 0, with MON_CLOCK_SKEW on the maintenance timeline.
- **DIMM:** a note on 693930698, with its down OSDs and degraded PGs filed under the reboot.
- **Standing problems:** warnings already on before each incident (BlueStore slow ops, the unarchived crash, noout, the nearfull trend) are their own standing problems and are asserted separately.
- **Fixtures:** they only gained the new Ceph Prometheus series (`record_fixture.py --ceph-only`). No Loki data was re-recorded, since T3 is older than Loki may keep.
### Decision needed: T1 now opens a second ticket
- `DB_DEVICE_STALLED_READ_ALERT` switched on at 05:50 during the OOM loop (filed under it) and stayed on until 06:50, after the OOM cleared at 06:18.
- By the per-code rules, a P3 that outlasts its cause by 15 minutes gets its own ticket, so a P3 opens at 06:34. Its text says it "carried on after that one cleared".
- I think that's right: stalled DB reads half an hour after memory recovered is worth a look. The alternative is that a warning filed under a cause never gets its own ticket while it lasts. Tell me if you want that instead.
## Not in this PR
- The thor#3 view: parity with Proxmox, history, maintenance answers.
- Adoption and go-live.
- OSD_SLOW_PING_TIME ownership by Gandalf's network incident, which waits for gandalf#66.
Local: ruff and flake8 clean, 174 passed, 7 skipped (MariaDB, in CI).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
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]>
jared
merged commit 7b9f1962ee into main2026-11-27 12:29:21 -05:00
jared
deleted branch ceph-check2026-11-27 12:29:22 -05:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Ceph moves from hwmonDaemon to Thor (thor#3), built from the decisions in thor#3 comment 7206. The
cephcheck runs in shadow: it sends nothing until the operator flips it in/etc/thor/thor.json, adopts 673679581 and 629475198, and turnsCEPH_ENABLEDoff in hwmonDaemon in the same change. UI change: screenshots for review are in the "Thor UI review" artifact (top section, "PR 14"). CI's UI job also uploads the full set.What Thor tickets now (all from one table,
thor/checks/ceph.py)cluster:ceph:<CODE>: one incident per Ceph health code, at the agreed priority.host:<host>:osd_down: one per host that is up, listing its down OSDs. On a host that is down, fenced, rebooting or in maintenance, its down OSDs are "Also seen" there.cluster:ceph_flag:<flag>: a flag set for 24 h.nooutmatches its known condition, so it becomes a note on 693930698, not a ticket.cluster:ceph:MON_QUORUM: P1 when half or fewer monitors are in quorum.cluster:ceph:forecast_nearfull: P4 when the fullest OSD reaches nearfull within 60 days at the 14-day trend. This is real today: osd.5 is at 83.5% against Ceph's 85%, and an OSD crossed it from 11-05 to 11-07.Timing by priority:
A warning that stops before its time is dropped unsent.
Detail lines come from Proxmox
/cluster/ceph/statuswith the existing read-only token (which OSDs, which crashes). The ticket still opens if Proxmox doesn't answer.Visible, not buried (operator's ask)
/rules): every ticketing rule of every check, with priority, "ticket after", "cleared after", meaning, and the check's live or shadow badge. It is generated from the same tables the checks run on.Engine changes
hold_s/clear_s). Every other check keeps today's one cycle and 15 min.explainsFalse) never explain anything, and never make/coveringtrue. Without this, Gandalf would have commented a host-down onto the BlueStore P4 once Ceph went live. Filed under a cause, they also don't keep it open (extendsFalse).OSD_SLOW_PING_TIME_*andDB_DEVICE_STALLED_READ_ALERT).Replays (incident outcomes unchanged, except one item for you to decide)
record_fixture.py --ceph-only). No Loki data was re-recorded, since T3 is older than Loki may keep.Decision needed: T1 now opens a second ticket
DB_DEVICE_STALLED_READ_ALERTswitched on at 05:50 during the OOM loop (filed under it) and stayed on until 06:50, after the OOM cleared at 06:18.Not in this PR
Local: ruff and flake8 clean, 174 passed, 7 skipped (MariaDB, in CI).
🤖 Generated with Claude Code