diff --git a/docs/changelog.md b/docs/changelog.md index 347663ae..d3d86089 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -42,6 +42,18 @@ docstring gives: it is a record, not a claim about now. sensitivity is now medium, and group 1's load-shedding values are set so they cannot fire. Group 1's overload shed and every group's delays are still not read. +- **`build-heimdall.md` installs the exporter without apt's recommendations.** + `openipmi.service` and `smartmontools.service` had been failed on `heimdall` + since its first scrape on 2026-11-17, through the 2026-11-21 reboot. + `prometheus-node-exporter` recommends the collectors package, which + recommends `ipmitool` and `smartmontools`, and `ipmitool` recommends + `openipmi`. The Pi has no management controller and its card reports no + SMART data, so both fail at boot. Nothing alerted: `SystemdUnitFailed` + reads Alloy's journals, and `heimdall` runs no Alloy. ยง2 now installs with + `--no-install-recommends`, names the collectors package so the apt and + reboot metrics stay, checks `systemctl --failed`, and gives the purge for a + Pi built the old way. That purge is still to run on `heimdall`, from the + Mac, since `prometheus` reaches it only on 9100. ## 2026-11-23 diff --git a/docs/runbooks/build-heimdall.md b/docs/runbooks/build-heimdall.md index 4b48191a..099ce7d5 100644 --- a/docs/runbooks/build-heimdall.md +++ b/docs/runbooks/build-heimdall.md @@ -56,11 +56,27 @@ Expect `passwordauthentication no`, `permitrootlogin no` and ## 2. Updates and the exporter ```bash -sudo apt update && sudo apt install -y unattended-upgrades prometheus-node-exporter libnss3-tools +sudo apt update +sudo apt install -y --no-install-recommends unattended-upgrades \ + prometheus-node-exporter prometheus-node-exporter-collectors libnss3-tools systemctl is-active prometheus-node-exporter # active +systemctl --failed --no-legend # nothing ``` `unattended-upgrades` installs security updates daily, Chromium among them. +The collectors package adds the textfile metrics for pending upgrades and a +pending reboot. Without `--no-install-recommends`, apt also brings in what +it recommends for a server: `ipmitool`, which pulls in `openipmi`, and +`smartmontools`. A Pi has no management controller and its card reports no +SMART data, so `openipmi.service` and `smartmontools.service` fail at every +boot. The first build, on 2026-11-17, left both failed. On a Pi built that +way: + +```bash +sudo apt purge -y openipmi ipmitool smartmontools +sudo systemctl reset-failed openipmi.service smartmontools.service +systemctl --failed --no-legend # nothing +``` ## 3. The reservation