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
15 changes: 15 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ docstring gives: it is a record, not a claim about now.

## 2026-11-24

- **Five warnings on `gandalf` were the estate's general host rules firing on the
range host's resting state — the exclusions the estate already has were missing
from the `#1651` monitoring onboarding.** `HypervisorGuestStopped` paged on the
three targets and `ragnarok`, all stopped by design, and `SmartDriveBadSectors`
on the range SSD's known 8 reallocated sectors. All four range guests are now
tagged `on-demand` ([ADR-0079](adr/0079-tag-on-demand-guests-and-leave-them-out-of-the-stopped-guest-alert.md)),
which `HypervisorGuestStopped` excludes — not `disposable`
([ADR-0071](adr/0071-run-disposable-investigations-on-a-guest-that-is-destroyed.md)),
which the targets would outlive, since they are reverted and kept rather than
destroyed. `ragnarok`'s tag is declared in `tofu/guests.tf` so an apply keeps
it; the targets, not in `tofu/`, are tagged by hand. The SSD's 8 — stable since
2026-11-13, overall assessment passing, ~90% endurance left — is recorded in
`render-smart-baselines.sh`, so `SmartDriveBadSectors` accepts it and still
pages if it grows. `build-the-playground.md`'s *Monitoring the host* now lists
both as onboarding steps.
- **`heimdall` took its first Chromium upgrade unattended.** The first
nightly reboot fired at 04:30. At 06:08, unattended-upgrades took Chromium
from 156.0.8078.79 to 156.0.8078.108 from Raspberry Pi's archive, the
Expand Down
22 changes: 22 additions & 0 deletions docs/runbooks/build-the-playground.md
Original file line number Diff line number Diff line change
Expand Up @@ -1509,6 +1509,28 @@ healthy. `DisposableGuestOutlived` also begins covering any
`disposable`-tagged guest here. Host uptime is deliberately not alerted: an
always-on host has no "up too long" fault (ADR-0126).

**Tag the range guests, and baseline the range SSD — or the general host rules
fire on `gandalf`'s resting state.** `HypervisorGuestStopped` in
[`host.rules.yaml`](../../stacks/observability/prometheus/rules/host.rules.yaml)
pages on any guest stopped for an hour unless it is tagged `disposable` or
`on-demand`, a template, or mid-clone (ADR-0071, ADR-0079). The range's targets
sit stopped and reverted between sessions, and `ragnarok` is stopped until a
session needs it, so both are `on-demand` — not `disposable`, which the targets
would outlive: `DisposableGuestOutlived` fires on a `disposable` guest once it
passes fourteen days from creation, stopped or not, and the targets are kept and
reverted, not destroyed. The targets are not in `tofu/`, so tag them by hand,
once as root on `gandalf`: `qm set <vmid> --tags on-demand` for each (100, 101,
102). `ragnarok` is `tofu`-managed, so its `on-demand` is declared in
[`tofu/guests.tf`](../../tofu/guests.tf) beside `attack` and `range`, not set by
hand — a `qm set` there is undone on the next apply. And
`SmartDriveBadSectors` pages above a recorded baseline, so a drive with a known
count needs a row in
[`render-smart-baselines.sh`](../../scripts/render-smart-baselines.sh): the
range pool's SSD read 8 reallocated sectors on 2026-11-24 (#1651), stable since
2026-11-13, and now carries that baseline. Both were missed when `gandalf` was
first onboarded, and both surfaced as five warnings the day the guests crossed
the hour.

---

## 8. Check the four properties
Expand Down
7 changes: 7 additions & 0 deletions scripts/render-smart-baselines.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,16 @@ PROM="${TEXTFILE_DIR}/smart-baselines.prom"
# letter is not stable across reboots, and since #745 the row names
# the port: the S3520 is on the chipset AHCI's ata6 (hardware.md).
# The count, 4, has not changed since 2026-09-16.
# gandalf Intel SSDSC2BB960G7, the range pool's SATA SSD, ~49,462 power-on
# hours and 8 reallocated sectors when read on 2026-11-24 — stable
# since the audit of 2026-11-13, overall assessment passing, ~90%
# endurance left. The count surfaced only once gandalf began pushing
# metrics (#1651, ADR-0126); its collector emits the slot, so the row
# names the port, the S3510 on the chipset AHCI's ata1.
BASELINES=(
"oracle /dev/sda 32 2026-09-07 351"
"smaug pci-0000:00:17.0-ata-6 4 2026-09-16 483"
"gandalf pci-0000:00:17.0-ata-1 8 2026-11-24 1651"
)

die() { printf '\033[0;31merror:\033[0m %s\n' "$*" >&2; exit 1; }
Expand Down
2 changes: 1 addition & 1 deletion tofu/guests.tf
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ locals {
name => merge(g, {
mac_address = var.guest_identities[name].mac_address
smbios_uuid = var.guest_identities[name].smbios_uuid
tags = ["attack", "range"]
tags = ["attack", "range", "on-demand"]
extra_networks = [{ bridge = "vmbr1", ipv4_address = "172.30.30.10/24" }]
})
}
Expand Down