Skip to content

fix(k8s): find the source of the hawk host crashes #3785

Closed

Description

@dan-petty

Problem

The node hawk (a GPU worker) reboots on its own, several times a day. It ran kernel 7.2.8 and 7.2.15 (Debian). Only hawk shows this. condor, hog and gemini run the same profiler config and show no reboot. The node is cordoned since 2026-11-06 and still reboots, and the 16 GiB Ollama tier that ran on it is already out of the gateway (#3697).

Facts from the investigation of 2026-11-05:

  • 2026-11-05 17:08Z, first boot of kernel 7.2.15: Alloy loaded its eBPF tracer and died 14 s later of the Go fatal error: pidleput: P has non-empty run queue. Then the kernel logged BUG: workqueue leaked atomic, lock or RCU ... RCU=0->-1 workfn=bpf_map_free_deferred. The journal went silent and hawk rebooted. The container was the pod of the alloy-profiles DaemonSet on hawk.
  • 2026-11-02 04:22Z, kernel 7.2.8: an Oops in __run_timers (NULL write, a delayed-work timer). The trace has no BPF frames. Alloy seccomp.c:389 and RCU WARNs came before it.
  • hawk is the only Gigabyte Z590 UD AC with BIOS F6 (2021-11-03). An intel-microcode update from 2026-11-05 applies at the next boot.
  • hawk ran 20 h on 7.2.8 with the profiler before the 7.2.15 boot. So the fault is intermittent, and the kernel update did not cause it alone.
  • The Alloy eBPF profiler is the only eBPF program loader on the nodes. Falco has no manifest. The CNI is flannel with iptables.

Expected

The cause of the host crashes is found and recorded on this issue. The profiler exclusion for hawk (see Related) then goes away, or stays with the cause named.

Open hypotheses:

  1. The Alloy eBPF profiler with the kernel 7.2.x BPF code.
  2. The BIOS F6 of 2021 with the new microcode.
  3. Faulty RAM.
  4. The kernel 7.2.x on its own.

Acceptance criteria

Steps that only a person can do (they change the host):

  • Run a memory test on hawk (for example memtest86+ for several passes).
  • Update the BIOS to the newest release for the board.
  • Capture a crash with pstore, kdump or netconsole, so that the kernel log survives the reboot.
  • Try an older kernel, and note the result.
  • Record the cause on this issue, with the evidence.
  • Remove the hawk entry from the node affinity of alloy-profiles in k8s/monitoring/k8s-monitoring-values.yaml, if the profiler is not the cause (or keep it and name the cause).

Existing tool considered

pstore, kdump and netconsole are Linux kernel tools. memtest86+ tests RAM. No new code is needed.

Related

Alternatives check of 2026-11-08: partly.
Tool: memtest86plus/memtest86plus (https://github.com/memtest86plus/memtest86plus), GPL-2.0, last activity 2026-11-08, maintained.

Proposed design

Problem statement

The node hawk rebooted on 2026-11-02 and 2026-11-05 and hung on 2026-11-10, all on kernel 7.2.x. The alloy-profiles DaemonSet stays off hawk on the suspicion that its eBPF profiler caused the faults. The profiler did not run on hawk for 3 days before the hang, and that boot shows the same RCU state corruption as the boots that had the profiler, so the profiler is not the cause. The exclusion, its values comment, its README row, its spec requirement and its test go, and the hardware investigation of the node moves to its own issue.

Acceptance criteria

Requirement: The alloy-profiles affinity excludes no node

The alloy-profiles collector values in k8s/monitoring/k8s-monitoring-values.yaml SHALL hold no controller.affinity and no comment that names hawk.

Scenario: The collector values are read

  • WHEN A test reads collectors in k8s/monitoring/k8s-monitoring-values.yaml and the text of the alloy-profiles block
  • THEN alloy-profiles has no controller.affinity, no line of its block names hawk or fix(k8s): find the source of the hawk host crashes #3785, and alloy-metrics keeps its one required term with the expression node-role.kubernetes.io/control-plane DoesNotExist.

Requirement: The spec drops the hawk exclusion

The monitoring-collectors spec SHALL hold no requirement or scenario that names the node hawk.

Scenario: The spec is read

  • WHEN A test reads openspec/specs/monitoring-collectors/spec.md
  • THEN No text of the spec names hawk, and the requirements for the alloy-metrics write-ahead log and control-plane affinity stay.

Requirement: The README Pyroscope row states no exclusion

The Pyroscope row of k8s/README.md SHALL state no node exclusion.

Scenario: The README row is read

  • WHEN A test reads the row of the dashboard table that names pyroscope.json
  • THEN The row names no hawk and no node affinity, and it still names alloy-profiles and the profiling feature.

Requirement: The profiler test asserts no exclusion

The collector-affinity test test_the_ebpf_profiler_runs_on_every_node in tests/commands/k8s/test_k8s_monitoring_integration.py MUST assert that alloy-profiles, alloy-logs and alloy-singleton carry no controller.affinity.

Scenario: The test runs

  • WHEN devops ci test tests/commands/k8s/test_k8s_monitoring_integration.py runs
  • THEN The test passes, its text holds no hawk value, and it asserts the control-plane affinity of alloy-metrics.

Existing Tool Considered

memtest86plus/memtest86plus (https://github.com/memtest86plus/memtest86plus), the tool that the alternatives check of 2026-11-08 named with the verdict partly, is open, GPL-2.0 and maintained: the page fetched on 2026-11-12 shows 585 commits and the latest commit of 2026-11-07. It runs several RAM test passes from its own medium and changes nothing on the node disk. It lacks the kernel log capture across a reset, which needs pstore with a ramoops region or netconsole to a second host from the Linux kernel (https://github.com/torvalds/linux); it lacks the BIOS and microcode check and the kernel older than 7.2, and it does not record the cause by itself. This change builds no code, so no build cost applies: it edits a values file, a README row, a spec requirement and a test.

Key questions

  • What does the repository hold for the hawk exclusion now?: collectors.alloy-profiles.controller.affinity in k8s/monitoring/k8s-monitoring-values.yaml holds one required node selector term with the expression kubernetes.io/hostname NotIn [hawk], and the comment above it cites fix(k8s): find the source of the hawk host crashes #3785 and fix(k8s): the ebpf profiler skips hawk #3784. k8s/README.md states the same exclusion in the Pyroscope row. openspec/specs/monitoring-collectors/spec.md holds it as the requirement "The alloy-profiles pod does not run on the node hawk". The test test_the_ebpf_profiler_runs_on_every_node_except_hawk asserts the exact affinity, so it fails when the entry goes and the test stays. The exclusion is merged and released (fix(k8s): the ebpf profiler skips the node hawk #3788, CHANGELOG.md:1167). [sources: k8s/monitoring/k8s-monitoring-values.yaml:398, k8s/monitoring/k8s-monitoring-values.yaml:402, k8s/README.md:319, openspec/specs/monitoring-collectors/spec.md:23, tests/commands/k8s/test_k8s_monitoring_integration.py:1196, CHANGELOG.md:1167]
  • Is the eBPF profiler the cause of the faults of hawk?: No. The profiler did not run on hawk from about 2026-11-06 09:00Z to the hang of 2026-11-10 07:19Z, and the kernel log of that boot holds the same RCU state corruption as the events with the profiler. The Oops of 2026-11-02 has no BPF frames. The faults fit faulty RAM, an XMP memory profile, the CPU or BIOS F6. The evidence comes from the reply of 2026-11-12 on the issue. (best practice) [sources: k8s/monitoring/k8s-monitoring-values.yaml:398]
    • Chosen: The profiler is not the cause. The node ran 3 days without the profiler and then showed the same RCU corruption, and the 11-02 Oops has no BPF frames.
    • Rejected: The profiler is the cause. It ran about 20 h on 7.2.8 with no fault, and it did not run before the hang of 2026-11-10.
    • Rejected: The profiler is unproven, so keep the exclusion. The issue removes the entry when the profiler is not the cause, and the 11-10 event shows that.
  • Which files change when the exclusion goes?: Four together in one pull request: the affinity and its comment in k8s/monitoring/k8s-monitoring-values.yaml, the Pyroscope row of k8s/README.md, the requirement in openspec/specs/monitoring-collectors/spec.md that the change's spec delta removes and uv run devops openspec archive writes, and the collector-affinity test in tests/commands/k8s/test_k8s_monitoring_integration.py, renamed test_the_ebpf_profiler_runs_on_every_node. The test must change in the same pull request, because it asserts the exact affinity. (best practice) [sources: k8s/monitoring/k8s-monitoring-values.yaml:402, k8s/README.md:319, openspec/specs/monitoring-collectors/spec.md:23, tests/commands/k8s/test_k8s_monitoring_integration.py:1196]
    • Chosen: Change all four in one pull request. The values file, the README, the spec and the test state the same exclusion, and the test fails if it stays.
    • Rejected: Change the values file alone. The test asserts the hawk affinity, so it would fail, and the spec and the README would drift.
    • Rejected: Keep the exclusion and change only its comment. The issue removes the entry when the profiler is not the cause, and the 11-10 event shows that it is not.
  • Which open, maintained tool covers the host steps?: memtest86plus/memtest86plus covers the RAM test for several passes: it is open, GPL-2.0 and maintained, with its last commit on 2026-11-07 (page fetched 2026-11-12). The Linux kernel's pstore with a ramoops region, netconsole and kdump cover the log across a reset. Each tool lacks the part of the others, and none records the cause. The change builds no code. [sources: https://github.com/memtest86plus/memtest86plus]
  • Where does the hardware investigation of hawk go?: To a new issue. No pull request in this repository can run a RAM test, update the BIOS, read the microcode revision or install an older kernel, and the crash capture lives in the dan-petty/homelab repository. Refine files the deferred part as a new issue, and this issue delivers the removal of the exclusion, so its pull request needs no host access. (best practice) [sources: docs/ROADMAP_WORKFLOW.md:122, AGENTS.md:9, k8s/monitoring/k8s-monitoring-values.yaml:402]
    • Chosen: File a new issue for the hardware investigation. The host steps need physical and root access, and the crash capture is in another repository; refine files a deferred part as a new issue (docs/ROADMAP_WORKFLOW.md:122).
    • Rejected: Keep the investigation in this issue. The item would wait on physical access with no pull request to deliver, and a person-only decision makes refine wait.
    • Rejected: Do the crash capture in this repository. The crash capture is in the dan-petty/homelab repository, not in this one, and this repository holds no host code.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/bug
    scope/k8s
    status/new
    value/high
    effort/high
    on Nov 6, 2026
  2. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/bug. The fix prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P1-High. The GPU worker reboots several times a day and has been cordoned since 2026-11-06.
    • Value: High. A recurring host crash blocks a GPU worker and threatens cluster reliability.
    • Effort: High. Requires physical access, memory tests, BIOS update, crash capture, and kernel comparison.
    • Related: fix(k8s): the ebpf profiler skips hawk #3784, which asks for a different change. Both concern the hawk node crashes; dan-petty/devops-cli#3784 delivers the profiler exclusion workaround, while the candidate delivers the root cause identification.
  3. added
    priority/p1-high
    on Nov 6, 2026
  4. devops-cli-service commented on Nov 6, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at bd65ef6 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who runs the host steps on hawk, and when? (a person decides)
  5. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    Uptime evidence from the node exporter on 2026-11-07 (not a cause, a data point):

    • Boots in the last 4 days: 3. The boot times are 2026-11-05 17:09Z (kernel 7.2.15, the crash with the bpf_map_free_deferred BUG), 2026-11-06 05:11Z, and none since.
    • The current boot has run about 18 h. The profiler exclusion (fix(k8s): the ebpf profiler skips the node hawk #3788) reached the node on 2026-11-06 at about 09:00Z, so the node has run about 14 h without the profiler, and about 4 h before it with the profiler.
    • The node ran 20 h with the profiler before the first crash on kernel 7.2.8, so 14 h without a crash does not show the profiler as the cause. Keep the exclusion and keep the host steps open. A crash on the current boot would point away from the profiler.

    An interactive checklist for the host steps (crash capture, older kernel, memory test, BIOS) is ready for the person who has access to the host.

  6. dan-petty commented on Nov 6, 2026

    @dan-petty
    OwnerAuthor

    Correction and host facts from the node, 2026-11-06 (read-only commands, run without root):

    • My comment of 2026-11-07 said "3 boots in 4 days". That count is too low. The node exporter lost its scrapes while the node was down. The journal shows these boots since 2026-11-04 (local time MST): 13:47, 10:08, 10:09, 12:18 on 5 November, and 22:11 on 5 November (the current boot). The two boots of 10:08 and 10:09 are one minute apart, and the boot of 12:18 shows one second of visible log.
    • The current boot began at 2026-11-05 22:11 MST (2026-11-06 05:11Z) and has run about 18 h. The profiler exclusion (fix(k8s): the ebpf profiler skips the node hawk #3788) reached the node about 4 h into this boot. The statement stays: 14 h without a crash is not proof that the profiler is the cause.
    • Kernel 7.2.15+deb14. Installed kernels: 7.2.15 and 7.2.8. Both crashed, so the older-kernel test needs a kernel older than 7.2 from the Debian archive.
    • Microcode revision 0x66 is loaded. The BIOS version and the pstore state are not known yet: dmidecode is not installed on the node, and /sys/fs/pstore and dmesg need root.
    • The journal as a normal user shows only its own messages. The tail of the previous boot (journalctl -b -1 -e) needs root or the group systemd-journal.
  7. devops-cli-service commented on Nov 7, 2026

    @devops-cli-service
    Contributor

    Refine cannot set this item to Ready at 0550497 until a person answers the questions below. Reply in a comment or edit the body, and the next refine round looks at the item again.

    • Who runs the host steps on hawk, and when? (a person decides)
  8. devops-cli-service commented on Nov 8, 2026

    @devops-cli-service
    Contributor

    Alternatives check: partly

    Reason: The searches found memtest86+ (open, maintained, GPL-2.0) and the Linux kernel's own crash tools (pstore with a ramoops region, netconsole, kdump), which the issue already names. One tool covers only a part of the need: memtest86+ settles the faulty-RAM hypothesis, while the kernel log capture and the BIOS, microcode and older-kernel steps remain for other tools and a person with host access.

    Tool: memtest86plus/memtest86plus (https://github.com/memtest86plus/memtest86plus)

    • License: GPL-2.0
    • Last activity: 2026-11-08
    • Maintained: yes

    Covers:

    • Tests the host RAM for several passes, which settles hypothesis 3 (faulty RAM)
    • Boots from its own medium and changes nothing on the node's disk
    • Open and maintained, so no new code is needed to run it

    Lacks:

    • Does not capture the kernel log across a spontaneous reboot; that needs pstore with a ramoops region or netconsole to a second host
    • Does not test the BIOS F6 or the loaded microcode revision
    • Does not run an older kernel (older than 7.2) to test the kernel hypothesis
    • Does not by itself find or record the cause of the crashes

    Tools considered:

    Searches run:

    • pstore ramoops capture kernel log across reboot, results: 5
    • memtest86+ RAM test tool, results: 5
    • netconsole send kernel log to remote host crash diagnosis, results: 5
    • kernel pstore persistent storage documentation kernel.org, results: 5
    • kdump vmcore kernel crash dump documentation, results: 5
    • memtest86plus github repository, results: 5
    • netconsole kernel, results: 5
    • ramoops pstore, results: 5
    • memtest86+, results: 5
    • memtest86plus memtest86+ open source memory tester, results: 5

    Sources:

    Checked on 2026-11-08. A person decides what this means for the item. The check changes no label and closes no issue.

  9. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor

    New event: hawk hung on 2026-11-10 and did not reboot. It was NotReady from 2026-11-10 07:19Z until a person restarted it on 2026-11-12. While it was hung, it did not answer on SSH, the kubelet or the node exporter. The journal reached Loki until the end, so this time the kernel log is kept (Loki {instance="hawk", transport="kernel"}, boot a331f6e2).

    Sequence (UTC):

    • 2026-11-06 05:11Z: boot on 7.2.15. The profiler exclusion (fix(k8s): the ebpf profiler skips the node hawk #3788) reached the node at about 09:00Z. No warning for about 3 days.
    • 2026-11-09 05:34Z: WARNING: kernel/rcu/tree_plugin.h:823 at rcu_sched_clock_irq+0x889/0xcc0, CPU#8: alloy/3517. This is an RCU state warning, of the same class as the RCU WARNs before the Oops of 2026-11-02 and the RCU=0->-1 BUG of 2026-11-05. The current process was alloy, which runs on every node.
    • From about 08:00Z: rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 7-...D }, once every 63 s, for about 23 h.
    • 2026-11-10 07:18:10Z: WARNING: kernel/time/timer_migration.c:736 at tmigr_cpu_activate+0x55/0x60, CPU#7: swapper/7/0. The node was lost at 07:19Z.

    What this shows:

    • The eBPF profiler did not run on hawk for 3 days before this event. So the profiler is not the cause.
    • gemini and hog run the same kernel, 7.2.15+deb14, and the same Alloy. They show no RCU warning. So the kernel alone is not the likely cause.
    • RCU state corruption on one host only fits faulty RAM, an unstable memory setting (an XMP profile), the CPU, or BIOS F6. The host steps of this issue test exactly these.
    • The person restarted hawk on 2026-11-12 with 16 GiB of RAM (it had 64 GiB). It stays cordoned until the memory test and the BIOS update are done.
    • The crash capture of the homelab repo (branch feat/node-crash-capture) was not applied: the kernel line of the last boot has no crashkernel=. As written, it would also not catch this event, because it panics only on an Oops and on a soft lockup. The homelab PR for that branch adds kernel.panic_on_rcu_stall=1, kernel.hardlockup_panic=1 and the hardware watchdog (the iTCO_wdt driver is loaded; systemd RuntimeWatchdogSec), so that such a hang becomes a reset with a saved log.
  10. removed
    status/new
    on Nov 12, 2026
  11. 12 remaining items

  12. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor

    implement: retry

  13. added
    status/planned
    and removed
    status/blocked
    on Nov 13, 2026
  14. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Cleared the stop at group 1 by the rule retry: a person commented implement: retry. The item is Planned again, and the Service takes it in the next round.

  15. added
    status/in-progress
    and removed
    status/planned
    on Nov 13, 2026
  16. added
    status/in-review
    and removed
    status/in-progress
    on Nov 13, 2026
  17. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Pull request #5336 is ready for review. The checks passed.

    Spend: 57 model requests, 2770187 input tokens, 13381 output tokens.

  18. removed
    status/in-review
    on Nov 13, 2026
  19. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor
  20. devops-cli-service commented on Nov 13, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-13 02:53 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highpriority/p1-highscope/k8ssource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions