Skip to content

docs(runbooks): build-heimdall installs the exporter without recommends - #1701

Merged
Gerrrt merged 2 commits into
mainfrom
docs/heimdall-no-recommends
Nov 24, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
docs/heimdall-no-recommends

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 24, 2026

Copy link
Copy Markdown
Owner

What changed

build-heimdall.md §2 now installs the exporter with --no-install-recommends. It names prometheus-node-exporter-collectors explicitly, so the apt and reboot-required metrics stay. It checks that systemctl --failed is empty, and gives the purge for a Pi that was built the old way. There's also a changelog entry. This is a docs-only change; nothing deploys.

Why

Since its first scrape on 2026-11-17, heimdall has reported openipmi.service and smartmontools.service as failed (node_systemd_unit_state{state="failed"}), and they stayed failed through the 2026-11-21 reboot. Both come from apt's recommends chain: prometheus-node-exporter recommends the collectors, which recommend ipmitool and smartmontools, and ipmitool recommends openipmi. A Pi 5 has no management controller and its microSD card reports no SMART data, so both services fail at boot. Nothing alerted, because SystemdUnitFailed reads Alloy's journals and heimdall runs no Alloy. Found during the follow-up to the prometheus audit.

Blast radius

heimdall only, and only when it's rebuilt or someone runs the purge. Nothing in the repo deploys to it.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • apt-cache show on Ubuntu 26.04 confirms the recommends chain. Debian trixie's packages carry the same fields.

  • python3 scripts/check_docs.py: docs OK. ./scripts/lint.sh: every check PASS and none skipped. I didn't run the full make validate, because this is docs only.

  • I haven't run the purge on heimdall yet. prometheus can reach it only on 9100, so it has to be run from the Mac. Once it's run, node_systemd_unit_state{instance="heimdall",state="failed"} should drop to 0.

  • make validate passes

  • Deployed to the lab and confirmed working

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

apt's recommends chain from prometheus-node-exporter pulled in openipmi and
smartmontools, which fail at every boot on a Pi 5 with no BMC and a microSD
card. Both had been failed on heimdall since 2026-11-17. Install with
--no-install-recommends, keep the collectors package by name, check
systemctl --failed, and give the purge for a Pi built the old way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 02:49
@Gerrrt
Gerrrt enabled auto-merge (squash) November 24, 2026 02:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The unscoped reset-failed command can hide unrelated service failures, making the subsequent empty-output check misleading; it should target only the two named services.

1 open issue
What changed in this PR

This docs-only PR updates the heimdall build procedure to avoid recommended hardware-monitoring packages that fail on the Pi, while explicitly retaining the exporter collectors. Nothing is deployed.

Changes:

  • Adds --no-install-recommends and explicitly installs the collectors package.
  • Adds failed-unit checks and cleanup instructions for existing installations.
  • Records the cause, remediation, and pending host cleanup in the changelog.
File Description
docs/​runbooks/​build-heimdall.md Updates package installation, verification, and cleanup instructions.
docs/​changelog.md Records the documentation change and outstanding cleanup on heimdall.

Review effort: Balanced

Comment thread docs/runbooks/build-heimdall.md Resolved
@Gerrrt
Gerrrt merged commit bd3e646 into main Nov 24, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the docs/heimdall-no-recommends branch November 24, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants