Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ docstring gives: it is a record, not a claim about now.

## 2026-11-18

- **`fenrir`'s leftover tool images are gone, and its runbook installs the
weekly image prune.** "`fenrir`'s re-check with sudo finds nothing the audit
could not see", below, left seven lint and validate images, about 928 MB,
for the prune of 2026-11-23. They were removed today by image ID, after
checking that no container used them; Docker now holds only the three
images the sensor runs, with nothing reclaimable. A re-check of the
runbook against the box found that `homelab-prune-images` was on `fenrir`
only because a full installer run had once put it there: §4 installed the
archive prune and patch state by name, and not it. §4 now installs it too,
and `schedule-maintenance.md` names `fenrir` among the hosts it runs on.
- **`fenrir` checks hourly that it is still an appliance, the last of its
audit's next steps.** "`fenrir` sheds the last of its audit's leftovers",
below, left a drift check as the one step open. Now
Expand Down
14 changes: 14 additions & 0 deletions docs/runbooks/build-the-sensor-guest.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,20 @@ make install-agent-collectors AGENT=atreus@10.0.30.90 ARGS='--only zeek-archive-

It must end with `zeek-archive-prune.prom written, mode 644`.

**Prune unused images**, weekly, so an image a bump replaced does not stay on
the 30 GB root. The audit of 2026-11-13 found `homelab-prune-images` on this
guest only because a full installer run had once put it there; nothing in this
runbook did, so a rebuilt `fenrir` would not have had it. It runs `docker
image prune -a` on Mondays at 04:00 and writes no `.prom`, so the installer
checks the service's last result instead. Same checkout, same login:

```bash
make install-agent-collectors AGENT=atreus@10.0.30.90 ARGS='--only prune-images'
```

It removes only images no container uses. If `make validate` has been run
here, its tool images are among them; §0 keeps that work on Hicks.

**Report patch state**, so that a pending reboot or a held security update
reaches someone. The lab's `RebootRequired`, `SecurityUpdatesPending` and
`PatchStateStopped` read `apt-patch-state.prom`, and a guest without the timer
Expand Down
6 changes: 3 additions & 3 deletions docs/runbooks/schedule-maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,11 @@ runs `docker image prune -a` on Mondays at 04:00, as the monitoring host's does,
from `systemd/agent/homelab-prune-images.timer`. Nothing removed superseded
images on an agent host before it, and on 2026-10-01 `odin`'s 30 GB root was at
98%, 7.8 GB of it images no container used. It requires `/usr/bin/docker`, so
it installs on `oracle`, `trinity`, `alexander` and `odin`, and `Saruman`
reports it as one it cannot run. Like `zeek-mirror` it writes no `.prom`. An
it installs on `oracle`, `trinity`, `alexander`, `odin` and `fenrir`, and
`Saruman` reports it as one it cannot run. Like `zeek-mirror` it writes no `.prom`. An
agent host has no `homelab_job_*` metrics, so a failed run shows only in
`journalctl -u homelab-prune-images`. What would show it is the disk: on the
two lab guests, the estate's `GuestDiskWillFillIn24h` and `GuestDiskCritical`,
lab guests, the estate's `GuestDiskWillFillIn24h` and `GuestDiskCritical`,
which page (below).

**`zeek-archive-prune` is the one agent row with `homelab_job_*` metrics.** It
Expand Down