nzbget: the rehearsal reads the mount, so the deploy can pass it (THE-122) #14

Merged
pit merged 1 commit from paperclip/THE-122-nzbget-rehearsal into main 2026-12-03 16:08:42 +00:00
Owner

The deploy (task 81, run 1062) walked navidrome, subwave, prowlarr, radarr, sonarr and lidarr, then stopped at nzbget in the rehearsal:

TASK [nzbget : read whether the downloads directory is a mount] skipping
TASK [nzbget : the downloads directory is the NAS volume]
... findmnt said: nothing

The live mount is there and correct: findmnt /var/lib/nzbget/downloads answers 10.12.0.6:/volume1/ws/nzbget/downloads on 147. The read is a command, so the check-mode rehearsal skipped it, and the assert then judged an empty answer. The read now runs in check mode; the package read does too, and the .deb install is skipped there, as navidrome's is.

make check is green. Merge; the merge starts a new deploy, which re-runs the walk from the top and should pass nzbget's mount assert.

The deploy (task 81, run 1062) walked navidrome, subwave, prowlarr, radarr, sonarr and lidarr, then stopped at nzbget in the **rehearsal**: ``` TASK [nzbget : read whether the downloads directory is a mount] skipping TASK [nzbget : the downloads directory is the NAS volume] ... findmnt said: nothing ``` The live mount is there and correct: `findmnt /var/lib/nzbget/downloads` answers `10.12.0.6:/volume1/ws/nzbget/downloads` on 147. The read is a `command`, so the check-mode rehearsal skipped it, and the assert then judged an empty answer. The read now runs in check mode; the package read does too, and the `.deb` install is skipped there, as navidrome's is. `make check` is green. Merge; the merge starts a new deploy, which re-runs the walk from the top and should pass nzbget's mount assert.
A Proxmox `mp` bind makes a container unsnapshottable, and the pre-deploy
snapshot is the deploy's first step. The two Guests that carry one move the
mounts into the Guest: an NFS mount at the same path, with the same source and
the same read-only flag, so the service assertions do not move.

An unprivileged container cannot make that mount: `features.mount=nfs` still
answers EPERM from mount.nfs on this PVE, measured on 148 after a restart, while
a privileged container mounts the same subdirectories. Both Guests therefore
run privileged, and the conversion is a restore, not a config toggle.

The units are ordered after the mount units: navidrome by a drop-in, slskd and
soularr in their templates.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
The two Guests' docs move with the mount, and the rehearsal learns it (THE-122)
All checks were successful
pr-checks / check (pull_request) Successful in 41s
3d44c0e4f7
The runbooks, the pilot reading and the mount table now say what the live
machines do: 117 and 148 mount the NAS themselves at the same paths, the fstab
lines are the Operator's, and the Guests are privileged because an unprivileged
container cannot mount NFS on this PVE.

The navidrome role's rehearsal needed two guards the change exposed: the mount
assert is skipped in check mode (the command read is), and the package read runs
in check mode so the install decision is not made blind. The .deb install is
skipped in check mode.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
nzbget: the rehearsal reads the mount, so the deploy can pass it (THE-122)
All checks were successful
pr-checks / check (pull_request) Successful in 40s
4446607306
The deploy's service step runs the play in check mode first. The nzbget role's
findmnt read is a command, so the rehearsal skipped it, and the assert then
failed on an empty answer — on a Guest whose mount is there and correct. The
read now runs in check mode; the package read does too, and the .deb install is
skipped there, as navidrome's is.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Member

Review started (round 1/5) on 4446607306 — reading the diff now.

**Review started** (round 1/5) on 4446607306a0214b12d0b4ba8dee755e5b7b2f38 — reading the diff now.
pit force-pushed paperclip/THE-122-nzbget-rehearsal from 4446607306
All checks were successful
pr-checks / check (pull_request) Successful in 40s
to 6b73caec39
All checks were successful
pr-checks / check (pull_request) Successful in 38s
2026-12-03 16:02:26 +00:00
Compare
bot-minos approved these changes 2026-12-03 16:08:02 +00:00
bot-minos left a comment

olympus/infra-media #14 · nzbget: the rehearsal reads the mount, so the deploy can pass it — head 6b73cae · round 1/5 · axes: standards, spec

Recommendation: merge

The sign-on named 4446607; the branch was rebased onto main (0616eca) as 6b73cae while this round was reading it. This review is of 6b73cae, and the delta it grades is that tree's: one file, five added lines, one changed — nzbget/service/roles/nzbget/tasks/main.yml. The earlier tree carried the #13 mount work again and reverted two of main's fixes; the rebase removed that, and it is not what lands.

Standards

standards: no repo conventions found for infra-media — no AGENTS.md, CONTRIBUTING.md, docs/adr/ or agent-skill tree at this head. Judged against the org records in olympus/workshop/docs/adr/ and general good practice, which is what the floor page describes (README.md:49-52).

  • 0 blockers, 0 advisories.

ADR-0011 (a deploy never destroys or replaces) is untouched: the change adds check_mode: false to two reads and one when: clause to an install. No resource, no state, no new door. ADR-0009's deploy-on-merge is the reason the change matters and is not altered by it.

The shape is this repository's own. navidrome carries the identical triplet at main — the read-in-rehearsal flags at navidrome/service/roles/navidrome/tasks/main.yml:69 and :123, the install gate at :102 — so the nzbget role now does what its sibling was already reviewed to do, and does it in the same words. The comment on the read (:32-33) states the mechanism accurately.

Spec

Sources: the PR body (the symptom, its mechanism, the fix) and paperclip:THE-122, whose done-when is "a merge to infra-media main … the twelve-Host walk ends green through verify". The body claims three things — the mount read now runs in the rehearsal, the package read does too, and the .deb install is skipped there — and the diff is exactly those three, in one file.

  • 0 blockers, 0 advisories.

No requirement is missing and nothing rides along: the PR shows one file, and the change is one file.

Verified

Claim How
the rehearsal fails today, on a Guest whose mount is there at 431ebbd, the mount section driven verbatim under ansible-playbook --check: the read is skipped and the assert fails — findmnt said: nothing, rc 2. The reported failure, reproduced
the read now runs in the rehearsal at 6b73cae, the same section: read ok, assert ok, rc 0
the rehearsal still refuses a missing mount at 6b73cae, the same section against a path that is not a mount: assert fails, rc 2 — the guard is not blinded
nothing after the mount is blind in check mode the role's next rehearsal-skippable read, the config slurp (:115-120), driven under --check: ok, rc 0
make check green at 6b73cae: rc 0; 94 + 53 + 33 assertions, 0 FAILED; env-check pin and map agree
every Stack valid make validate at 6b73cae: rc 0, validate: 12 Stack(s) valid.
CI pr-checks / check success at 6b73cae (run 48, 38s)

The two hunks the fix adds are :34 and :54 (check_mode: false), and the install gate :73. The red/green pair above is the differential the change exists to make.

Named, not charged

  • navidrome/service/roles/navidrome/tasks/main.yml:43-58 skips its mount assert in a rehearsal where this PR proves the read can run in one. It is main's line, this diff does not touch it, and the two roles now answer the same question two ways — one line for a later pass, not this PR's.
  • The Terraform half of the earlier revision (117/148 unprivileged = false, mount_points = []) is already on main as #13 and is not in this delta at all.

Could not verify

  • The live 147 (findmnt /var/lib/nzbget/downloads) and the deploy run the body cites (Semaphore task 81, run 1062): no route from this reviewing host. The mechanism is verified here; the run is the author's measurement, and the merge's walk is what settles it.

Summary

  • Standards — 0 findings; worst: none.
  • Spec — 0 findings; worst: none.

Nothing outstanding: the recommendation is merge.

<!-- minos review-loop: repo=olympus/infra-media pr=14 head=6b73caec3919d441241fcd3ee9f6430cd5672732 round=1/5 axes=standards,spec --> **olympus/infra-media #14 · nzbget: the rehearsal reads the mount, so the deploy can pass it** — head `6b73cae` · round **1/5** · axes: standards, spec Recommendation: merge The sign-on named `4446607`; the branch was rebased onto `main` (`0616eca`) as `6b73cae` while this round was reading it. This review is of `6b73cae`, and the delta it grades is that tree's: one file, five added lines, one changed — `nzbget/service/roles/nzbget/tasks/main.yml`. The earlier tree carried the #13 mount work again and reverted two of main's fixes; the rebase removed that, and it is not what lands. ## Standards `standards: no repo conventions found` for `infra-media` — no `AGENTS.md`, `CONTRIBUTING.md`, `docs/adr/` or agent-skill tree at this head. Judged against the org records in `olympus/workshop/docs/adr/` and general good practice, which is what the floor page describes (`README.md:49-52`). - 0 blockers, 0 advisories. ADR-0011 (a deploy never destroys or replaces) is untouched: the change adds `check_mode: false` to two reads and one `when:` clause to an install. No resource, no state, no new door. ADR-0009's deploy-on-merge is the reason the change matters and is not altered by it. The shape is this repository's own. navidrome carries the identical triplet at `main` — the read-in-rehearsal flags at `navidrome/service/roles/navidrome/tasks/main.yml:69` and `:123`, the install gate at `:102` — so the nzbget role now does what its sibling was already reviewed to do, and does it in the same words. The comment on the read (`:32-33`) states the mechanism accurately. ## Spec Sources: the PR body (the symptom, its mechanism, the fix) and `paperclip:THE-122`, whose done-when is "a merge to `infra-media` `main` … the twelve-Host walk ends green through `verify`". The body claims three things — the mount read now runs in the rehearsal, the package read does too, and the `.deb` install is skipped there — and the diff is exactly those three, in one file. - 0 blockers, 0 advisories. No requirement is missing and nothing rides along: the PR shows one file, and the change is one file. ## Verified | Claim | How | | --- | --- | | the rehearsal fails today, on a Guest whose mount is there | at `431ebbd`, the mount section driven verbatim under `ansible-playbook --check`: the read is skipped and the assert fails — `findmnt said: nothing`, rc 2. The reported failure, reproduced | | the read now runs in the rehearsal | at `6b73cae`, the same section: read `ok`, assert `ok`, rc 0 | | the rehearsal still refuses a missing mount | at `6b73cae`, the same section against a path that is not a mount: assert fails, rc 2 — the guard is not blinded | | nothing after the mount is blind in check mode | the role's next rehearsal-skippable read, the config `slurp` (`:115-120`), driven under `--check`: `ok`, rc 0 | | `make check` green | at `6b73cae`: rc 0; 94 + 53 + 33 assertions, 0 FAILED; `env-check` pin and map agree | | every Stack valid | `make validate` at `6b73cae`: rc 0, `validate: 12 Stack(s) valid.` | | CI | `pr-checks / check` success at `6b73cae` (run 48, 38s) | The two hunks the fix adds are `:34` and `:54` (`check_mode: false`), and the install gate `:73`. The red/green pair above is the differential the change exists to make. ## Named, not charged - `navidrome/service/roles/navidrome/tasks/main.yml:43-58` skips its mount assert in a rehearsal where this PR proves the read can run in one. It is `main`'s line, this diff does not touch it, and the two roles now answer the same question two ways — one line for a later pass, not this PR's. - The Terraform half of the earlier revision (117/148 `unprivileged = false`, `mount_points = []`) is already on `main` as #13 and is not in this delta at all. ## Could not verify - The live 147 (`findmnt /var/lib/nzbget/downloads`) and the deploy run the body cites (Semaphore task 81, run 1062): no route from this reviewing host. The mechanism is verified here; the run is the author's measurement, and the merge's walk is what settles it. ## Summary - **Standards** — 0 findings; worst: none. - **Spec** — 0 findings; worst: none. Nothing outstanding: the recommendation is **merge**.
pit merged commit 0d5993f232 into main 2026-12-03 16:08:42 +00:00
pit deleted branch paperclip/THE-122-nzbget-rehearsal 2026-12-03 16:08:42 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
olympus/infra-media!14
No description provided.