Repository navigation
docs(runbooks): build-heimdall installs the exporter without recommends - #1701
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
🟡 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-recommendsand 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
…mmends # Conflicts: # docs/changelog.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed
build-heimdall.md§2 now installs the exporter with--no-install-recommends. It namesprometheus-node-exporter-collectorsexplicitly, so the apt and reboot-required metrics stay. It checks thatsystemctl --failedis 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,
heimdallhas reportedopenipmi.serviceandsmartmontools.serviceas 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-exporterrecommends the collectors, which recommendipmitoolandsmartmontools, andipmitoolrecommendsopenipmi. A Pi 5 has no management controller and its microSD card reports no SMART data, so both services fail at boot. Nothing alerted, becauseSystemdUnitFailedreads Alloy's journals andheimdallruns no Alloy. Found during the follow-up to theprometheusaudit.Blast radius
heimdallonly, and only when it's rebuilt or someone runs the purge. Nothing in the repo deploys to it.secrets/*.sops.yamlVerification
apt-cache showon 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 fullmake validate, because this is docs only.I haven't run the purge on
heimdallyet.prometheuscan 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 validatepassesDeployed to the lab and confirmed working
Docs updated (
docs/, service README, ordocs/roadmap.md)🤖 Generated with Claude Code