From 67e9c3618a0615a382f06767b425b2115248ae99 Mon Sep 17 00:00:00 2001 From: Gerrrt Date: Sun, 22 Nov 2026 20:13:13 -0800 Subject: [PATCH 1/2] docs(range): delete gandalf's PhoenixIsoCleanup role and empty local-lvm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The audit's last finding. build-the-lab-templates.md deletes the role the 2026-11-09 revoke left defined; build-the-playground.md §1 removes the empty thin pool, since nothing of the range goes on the M.2. Both ran on gandalf. Co-Authored-By: Claude Opus 5.5 --- docs/changelog.md | 14 +++++++++----- docs/runbooks/build-the-lab-templates.md | 12 ++++++++++++ docs/runbooks/build-the-playground.md | 21 +++++++++++++++++++++ 3 files changed, 42 insertions(+), 5 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index dd0b7f9c..7e4871d5 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -76,11 +76,15 @@ docstring gives: it is a record, not a claim about now. no route, the host unreachable with the `dropped` counter rising, and `ragnarok` still reaching the target. The clone had no DHCP stanza, which proves #1341 on the template rebuilt that day. - - The audit's last finding, leftovers with no runbook step, is still open - for two of them: the `PhoenixIsoCleanup` role, revoked from the token but - never deleted, and an empty `local-lvm`. The Kali installer ISO the audit - also listed is not a leftover. `packer/kali.pkr.hcl` builds template 902 - from it (`kali_iso_file`). `/root/.claude/remote` went with the dotfiles. + - The audit's last finding, leftovers with no runbook step, got steps and + was cleared. `build-the-lab-templates.md` deletes the `PhoenixIsoCleanup` + role, which the 2026-11-09 revoke had left defined with no ACL. + `build-the-playground.md` §1 removes the empty `local-lvm`, because + nothing of the range goes on the M.2. Its 141 GiB stays free in the `pve` + volume group. Both ran on `gandalf` that night. The Kali installer ISO the + audit also listed is not a leftover: `packer/kali.pkr.hcl` builds + template 902 from it (`kali_iso_file`). `/root/.claude/remote` went with + the dotfiles. - **`gandalf`'s power-off timer is built, not installed ([#1647](https://github.com/Gerrrt/HomeLab/issues/1647)).** This builds ADR-0124 in the repository. `scripts/range-poweroff.sh` holds the deadline diff --git a/docs/runbooks/build-the-lab-templates.md b/docs/runbooks/build-the-lab-templates.md index 8278ec24..ff06a6ed 100644 --- a/docs/runbooks/build-the-lab-templates.md +++ b/docs/runbooks/build-the-lab-templates.md @@ -573,6 +573,18 @@ and 910 with this section and §5b to clear it. pveum acl delete /storage/local --users phoenix@pve --roles PhoenixIsoCleanup ``` + The revoke left the role itself defined on `gandalf`, with no ACL using + it. The 2026-11-22 audit found it there. Nothing on the range uses it, so + delete it too: + + ```bash + pveum acl list | grep -c PhoenixIsoCleanup + pveum role delete PhoenixIsoCleanup + pveum role list | grep -c PhoenixIsoCleanup + ``` + + Both counts should be `0`. Deleted on `gandalf` 2026-11-22. + That paste went first into a zsh on `phoenix`, where `pveum` does not exist, and the paste handling turned every space after the first line into a literal `\s`. Nothing ran there. Paste into the node's **Shell** diff --git a/docs/runbooks/build-the-playground.md b/docs/runbooks/build-the-playground.md index 87cbc9bb..a52c33a9 100644 --- a/docs/runbooks/build-the-playground.md +++ b/docs/runbooks/build-the-playground.md @@ -161,6 +161,27 @@ pick it in the *Storage* field when creating each VM, and §6's `clean` snapshot is then a ZFS snapshot on that pool. Nothing of the range goes on the M.2. +So the installer's `local-lvm` has no use here, and a storage that can hold +guest disks is one a guest can be put on by mistake. Remove it, after +checking that nothing is on it and no guest names it: + +```bash +lvs pve/data -o lv_name,data_percent +grep -l local-lvm /etc/pve/qemu-server/*.conf /etc/pve/lxc/*.conf 2>/dev/null +pvesm remove local-lvm +lvremove -y pve/data +pvesm status; vgs pve +``` + +The first line should read `0.00` and the `grep` should print nothing. +After it, `pvesm status` lists `local` and `range` only, and the M.2's +141 GiB is free space in the `pve` volume group. It is left there rather +than grown into `/`, because ext4 does not shrink while mounted, and +nothing on the host needs the room. + +> **Ran on `gandalf` 2026-11-22**, from the audit that day, which found the +> thin pool empty and named by no guest. + **Cap ZFS's read cache.** The installer limits the ARC only when the root is ZFS, and here it is not, so by default ZFS may take half of RAM: 16 GB of the 32 the range's guests need. Four GiB is plenty for one pool: From 055f3fa5dbfeb82541edc26d8ae92e301ddb6854 Mon Sep 17 00:00:00 2001 From: Gerrrt Date: Sun, 22 Nov 2026 20:36:38 -0800 Subject: [PATCH 2/2] docs(range): keep the merged audit entry; prove the thin pool empty by volume list Review on #1653: - Restore the #1652 audit-fixes changelog entry verbatim and record the leftovers cleanup in a new dated entry that names it, per the changelog's own immutability rule. - The local-lvm removal now lists the data pool's thin volumes and requires none, instead of reading Data% 0.00 (which an unwritten thin volume also shows). Co-Authored-By: Claude Opus 4.8 --- docs/changelog.md | 22 +++++++++++++--------- docs/runbooks/build-the-playground.md | 8 ++++++-- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index 7e4871d5..7be0ca68 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -19,6 +19,14 @@ docstring gives: it is a record, not a claim about now. ## 2026-11-22 +- **`gandalf`'s two audit leftovers are cleared + ([#421](https://github.com/Gerrrt/HomeLab/issues/421)).** This corrects the + audit-fixes entry below, which recorded both as still open. + `build-the-lab-templates.md` deletes the `PhoenixIsoCleanup` role that the + 2026-11-09 revoke had left defined with no ACL, and `build-the-playground.md` + §1 removes the empty `local-lvm` thin pool, since nothing of the range goes + on the M.2; its 141 GiB stays free in the `pve` volume group. Both ran on + `gandalf` that night. - **`gandalf` stays on, and the attack VM stops on a timer instead ([ADR-0125](adr/0125-keep-gandalf-on-and-stop-ragnarok-on-a-timer.md), [#1647](https://github.com/Gerrrt/HomeLab/issues/1647)).** ADR-0125 @@ -76,15 +84,11 @@ docstring gives: it is a record, not a claim about now. no route, the host unreachable with the `dropped` counter rising, and `ragnarok` still reaching the target. The clone had no DHCP stanza, which proves #1341 on the template rebuilt that day. - - The audit's last finding, leftovers with no runbook step, got steps and - was cleared. `build-the-lab-templates.md` deletes the `PhoenixIsoCleanup` - role, which the 2026-11-09 revoke had left defined with no ACL. - `build-the-playground.md` §1 removes the empty `local-lvm`, because - nothing of the range goes on the M.2. Its 141 GiB stays free in the `pve` - volume group. Both ran on `gandalf` that night. The Kali installer ISO the - audit also listed is not a leftover: `packer/kali.pkr.hcl` builds - template 902 from it (`kali_iso_file`). `/root/.claude/remote` went with - the dotfiles. + - The audit's last finding, leftovers with no runbook step, is still open + for two of them: the `PhoenixIsoCleanup` role, revoked from the token but + never deleted, and an empty `local-lvm`. The Kali installer ISO the audit + also listed is not a leftover. `packer/kali.pkr.hcl` builds template 902 + from it (`kali_iso_file`). `/root/.claude/remote` went with the dotfiles. - **`gandalf`'s power-off timer is built, not installed ([#1647](https://github.com/Gerrrt/HomeLab/issues/1647)).** This builds ADR-0124 in the repository. `scripts/range-poweroff.sh` holds the deadline diff --git a/docs/runbooks/build-the-playground.md b/docs/runbooks/build-the-playground.md index a52c33a9..13ff1a2a 100644 --- a/docs/runbooks/build-the-playground.md +++ b/docs/runbooks/build-the-playground.md @@ -166,14 +166,18 @@ guest disks is one a guest can be put on by mistake. Remove it, after checking that nothing is on it and no guest names it: ```bash -lvs pve/data -o lv_name,data_percent +lvs --noheadings -o lv_name,pool_lv pve | awk '$2 == "data" { print }' grep -l local-lvm /etc/pve/qemu-server/*.conf /etc/pve/lxc/*.conf 2>/dev/null pvesm remove local-lvm lvremove -y pve/data pvesm status; vgs pve ``` -The first line should read `0.00` and the `grep` should print nothing. +Both of the first two commands should print nothing. The `awk` lists every +thin volume whose pool is `data`, and there must be none — `Data%` would read +`0.00` even if one existed, because an unwritten thin volume uses no data +blocks, so the list of volumes is the check, not the usage. The `grep` is the +second belt: no guest config names `local-lvm`. After it, `pvesm status` lists `local` and `range` only, and the M.2's 141 GiB is free space in the `pve` volume group. It is left there rather than grown into `/`, because ext4 does not shrink while mounted, and