Don't call it a network failure without network evidence (false P1 from a host OOM stall) #57

Closed
opened 2026-11-23 23:25:37 -05:00 by jared · 0 comments
Owner

What happened

Tinker 615797777 was opened at 2026-11-23 06:01 UTC as a P1 "Multiple hosts reporting interface failures". Nothing was wrong with the network.

  • Cause: compute-storage-01 ran out of memory.
    • CT 154 (pelican-wings-02, a Java game server) was OOM-killed 11 times from 05:11 UTC. node_vmstat_oom_kill rose by 11, and MemAvailable was close to 0.
    • One of those OOMs was triggered from the ceph-osd slice. Ceph stalled, and every node logged pvestatd: got timeout.
  • What Gandalf saw: the node_exporter scrapes of 4 hosts took 5 to 10 s at 06:01:30, and 3 of them hit the scrape timeout (up=0 for one scrape).
    • Gandalf counted those as "stopped reporting metrics".
    • It added monitor-01 because its dead enp3s0 (r8169, D3cold) flaps about every 2 min and counts as a fresh regression each time.
    • That made 3 hosts, so it opened a P1 on a single poll.
  • What was actually true: all switch ports for those hosts stayed up the whole time, according to UniFi.

Changes

Gandalf owns network tickets. Memory and host health are out of scope: that will be hwmonDaemon, and later thor. So the fix is to not open a network ticket here, rather than to open a different ticket.

  1. Slow is not missing.

    • up == 0 with scrape_duration_seconds near the scrape timeout means the host is stalled, not unreachable.
    • Only an absent series, or several consecutive failed scrapes, counts toward host_metrics_missing and the cluster check.
  2. Require network evidence. The cluster ticket needs at least one of:

    • a link-down interface on a host that was up before (and isn't flapping)
    • a UniFi switch port for that host going down
    • a host Gandalf can't reach

    If every affected host's switch ports stayed up and only scrapes were slow, don't ticket it.

  3. No P1 from a single poll. cluster_network_issue currently tickets on is_new. It should need consec >= fail_thresh, as per-host events already do.

  4. Flapping interfaces count once.

    • An interface that has toggled N times within an hour gets one standing interface_flapping event.
    • It doesn't count toward the cluster threshold.
    • monitor-01 enp3s0 is the live example.
  5. Explain what it skipped. When it holds back, add a quiet Needs attention line, e.g. "Scrapes slow on 3 hosts, switch links up: not a network fault".

    • It may add context it already has, such as "compute-storage-01 had OOM kills (node_vmstat_oom_kill)".
    • It opens no ticket for that context.
  6. Tests. Replay the 2026-11-23 06:01 shape: one-scrape timeouts on 3 or 4 hosts, a flapping NIC, and all switch ports up. Expect no ticket. Also keep a real switch-down case that still tickets.

Related

  • hwmonDaemon: host memory and OOM tickets (interim), and the checks moving to thor.
  • gandalf#2 (multi-source reachability) stays on hold. This issue only uses data Gandalf already has.
## What happened Tinker [615797777](https://t.lotusguild.org/ticket/615797777) was opened at 2026-11-23 06:01 UTC as a **P1 "Multiple hosts reporting interface failures"**. Nothing was wrong with the network. - **Cause:** compute-storage-01 ran out of memory. - CT 154 (pelican-wings-02, a Java game server) was OOM-killed 11 times from 05:11 UTC. `node_vmstat_oom_kill` rose by 11, and MemAvailable was close to 0. - One of those OOMs was triggered from the `ceph-osd` slice. Ceph stalled, and every node logged `pvestatd: got timeout`. - **What Gandalf saw:** the node_exporter scrapes of 4 hosts took 5 to 10 s at 06:01:30, and 3 of them hit the scrape timeout (`up=0` for one scrape). - Gandalf counted those as "stopped reporting metrics". - It added monitor-01 because its dead `enp3s0` (r8169, D3cold) flaps about every 2 min and counts as a fresh regression each time. - That made 3 hosts, so it opened a P1 on a **single poll**. - **What was actually true:** all switch ports for those hosts stayed up the whole time, according to UniFi. ## Changes Gandalf owns network tickets. Memory and host health are out of scope: that will be hwmonDaemon, and later thor. So the fix is to **not open a network ticket** here, rather than to open a different ticket. 1. **Slow is not missing.** - `up == 0` with `scrape_duration_seconds` near the scrape timeout means the host is stalled, not unreachable. - Only an absent series, or several consecutive failed scrapes, counts toward `host_metrics_missing` and the cluster check. 2. **Require network evidence.** The cluster ticket needs at least one of: - a link-down interface on a host that was up before (and isn't flapping) - a UniFi switch port for that host going down - a host Gandalf can't reach If every affected host's switch ports stayed up and only scrapes were slow, don't ticket it. 3. **No P1 from a single poll.** `cluster_network_issue` currently tickets on `is_new`. It should need `consec >= fail_thresh`, as per-host events already do. 4. **Flapping interfaces count once.** - An interface that has toggled N times within an hour gets one standing `interface_flapping` event. - It doesn't count toward the cluster threshold. - monitor-01 `enp3s0` is the live example. 5. **Explain what it skipped.** When it holds back, add a quiet Needs attention line, e.g. "Scrapes slow on 3 hosts, switch links up: not a network fault". - It may add context it already has, such as "compute-storage-01 had OOM kills (node_vmstat_oom_kill)". - It opens no ticket for that context. 6. **Tests.** Replay the 2026-11-23 06:01 shape: one-scrape timeouts on 3 or 4 hosts, a flapping NIC, and all switch ports up. Expect no ticket. Also keep a real switch-down case that still tickets. ## Related - hwmonDaemon: host memory and OOM tickets (interim), and the checks moving to thor. - gandalf#2 (multi-source reachability) stays on hold. This issue only uses data Gandalf already has.
jared closed this issue 2026-11-23 23:37:34 -05:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/gandalf#57