Add: systems/sabnzbd.md; rke2: cilium NP traps bullet; log 2026-10-19 converter+CNP arc
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
# User Drift Report — 2026-10-12
|
||||
# User Drift Report — 2026-10-19
|
||||
|
||||
**Recent window:** Last 14 days (1949 msgs)
|
||||
**Baseline:** Previous 90 days (6645 msgs)
|
||||
**Recent window:** Last 14 days (817 msgs)
|
||||
**Baseline:** Previous 90 days (7645 msgs)
|
||||
|
||||
## Detected Drifts
|
||||
|
||||
- **message_length**: Messages 164% longer (baseline: 1482 chars → recent: 3909)
|
||||
- **frustration_increase**: Frustration markers rose from 4.4% to 16.4%
|
||||
- **correction_increase**: Corrections increased from 6.8% to 24.1% — preferences may have shifted
|
||||
- **new_focus**: New dominant topics: security
|
||||
- **declining_focus**: Topics fading from focus: gitops
|
||||
- **message_length**: Messages 166% longer (baseline: 1943 chars → recent: 5171)
|
||||
- **frustration_increase**: Frustration markers rose from 6.7% to 23.4%
|
||||
- **correction_increase**: Corrections increased from 9.7% to 27.8% — preferences may have shifted
|
||||
- **new_focus**: New dominant topics: monitoring, security
|
||||
- **declining_focus**: Topics fading from focus: proxmox, ceph
|
||||
|
||||
## Signal Summary
|
||||
|
||||
| Metric | Baseline | Recent |
|
||||
|---|---|---|
|
||||
| Avg msg length | 1482 | 3909 |
|
||||
| Frustration rate | 4.4% | 16.4% |
|
||||
| Correction rate | 6.8% | 24.1% |
|
||||
| Action-first | 1.3% | 2.4% |
|
||||
| Top topics | ceph, proxmox, k8s | ceph, backup, security |
|
||||
| Avg msg length | 1943 | 5171 |
|
||||
| Frustration rate | 6.7% | 23.4% |
|
||||
| Correction rate | 9.7% | 27.8% |
|
||||
| Action-first | 1.6% | 2.8% |
|
||||
| Top topics | ceph, proxmox, k8s | security, backup, gitops |
|
||||
|
||||
## Recommendations
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
- [[systems/nut]] — NUT/UPS Shutdown-Kaskade, APC ES 700G @ ms-a2-1, FSD-Cluster-Shutdown
|
||||
- [[systems/hermes-agent-01]] — lokaler Hermes-Runner: Storage-Governance, Backup-Pipeline (RCA 08.10.), Watchdogs
|
||||
- [[systems/schoenkitchen]] — Essensplanungs-App: FastAPI:8420, CT99999-Traefik, Jinja2-Pitfall (aus nutri-L0 ausgelagert 10/2026)
|
||||
- [[systems/sabnzbd]] — Usenet-Downloader + VAAPI AppleTV-Converter, VIP .206 (8080+SMB 445), Guard-Bug-Lesson ffprobe-Quoting (10/2026)
|
||||
|
||||
## Concepts
|
||||
- [[concepts/network-architecture]] — 10.0.X.Y Schema, VLANs
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# Memory Log
|
||||
|
||||
## [2026-10-19] sabnzbd-vaapi-converter | AppleTV-Pipeline v6: 3 Guard-Bugs in einem Tag gefixt
|
||||
- TASK: „Konvertiere alle MKVs zu AppleTV-MP4" → VAAPI-GPU-Pipeline als Converter-Sidecar im SABnzbd-Pod (worker-05 einziger iGPU-Node, renderD128 GID 991, privileged nötig wg. Devices-Cgroup; 5,7× schneller als libx264, Benchmark 4,3 s vs. 24,7 s).
|
||||
- BUG 1 (v5, kritisch): ffprobe `-of csv=p=0` QUOTET Komma-Werte → `format_name` = `"mov,mp4,..."` mit Quotes → Skip-Guard matchte NIE, v4 re-encodede vorhandene gute MP4s. v2 hatte zwischendurch Lenas Morgen-Remux überschrieben (304→261 MB) — bit-exakt aus unangetasteter MKV restauriert (304.544.460 B). Fix: `${fmt//\"/}` vor Vergleich.
|
||||
- BUG 2 (v4): Partials-Discard-Case stand NACH dem generischen `*/incomplete/*`-Park-Case → unerreichbarer Code, `.converting.mkv`-Rest wurde nie verworfen. Fix: case-Order spezifisch→generell.
|
||||
- BUG 3 (v6): Park-Case matchte nur Pfad-Präfix OHNE Existenz-Check → 33 Jobs parkten auf Phantom-Pfaden weiter, obwohl SAB die Quellen längst nach complete/ verschoben hatte. Fix: `[ -f "$src" ]` als Frische-Beweis, sonst fällt Job zum Resolver durch.
|
||||
- META: Alle 3 Bugs saßen in GUARDS (Skip/Discard/Park), nicht in Encode-Logik — Guard-Fehler = Datenqualitäts-Incidente. Temp-File-Disziplin (`.converting.mp4` + Rename-on-success) rettete Daten beim v4-Kill. Rollout-Rezept: CM-Skripte in configmap.yaml, Annotation-Bump `converter-script-version` (bash liest nur beim Start) + CM-Delete + ArgoCD-Refresh.
|
||||
- CNP-ARC (gleiche Saga, Commits 6b02f9e/fac9524/ab95f45): 4 stumme Cilium-NP-Fallen — Selektion⇒Default-Deny, `egress: [{}]`=Null-Allow (kein Wildcard!), `io.kubernetes.service.name`=kein Identity-Label (→`k8s-app`+kube-system-NS), VIP-Ingress SNAT't als world (→fromEntities). Eigene Doc: `bug-fixes/2026-10-19-cilium-networkpolicy-four-traps.md`.
|
||||
- STATE: v6 deployed, Pod 3/3, alle 6 ErikaLust-MP4s verifiziert intakt (Skip-Guard greift), 33 Jobs parken legitim (Multi-Release-NZB, Move erst wenn ALLE Sets fertig, 12-h-Cap by design). Originale unberührt bis Lösch-GO. Solution Doc: `bug-fixes/2026-10-19-sabnzbd-vaapi-converter-guard-bugs.md`; Wiki neu: `systems/sabnzbd.md`.
|
||||
|
||||
## [2026-10-12] ha-repairs-cleanup | Stale-Ghost-Errors identifiziert, fehlgeleiteter Rename revertiert
|
||||
- ANLASS: Repairs-Seite zeigte 34 aktive Issues (5 Errors). Deep-Dive: 4 der 5 Errors waren Stale-Ghosts (Automation längst gelöscht, Services wieder da) — HA Issue-Registry räumt nicht selbst ab.
|
||||
- FEHLGELEITETER FIX + REVERT: These war, `notify.mobile_app_iphone_dominik` sei tot (14× in automations.yaml). FALSCH — Verwechslung von Entity (`notify.iphone_dominik`, nur in get_states) und Service (`notify.mobile_app_iphone_dominik`, in get_services). Der 14-fache Rename brach die Pushes, ein neuer Frigate-Error erschien sofort. Sofort-Revert aus `.hermesbak-20261012` (MD5-identisch), `automation.reload`, verifiziert: 14 echte Refs zurück, 0 Phantom-Refs.
|
||||
|
||||
@@ -3,15 +3,16 @@ title: RKE2 Kubernetes Cluster
|
||||
category: systems
|
||||
tags: [kubernetes, rke2, cilium, argocd, cnpg, gitops]
|
||||
created: "2026-07-24"
|
||||
modified: "2026-09-17"
|
||||
modified: "2026-10-19"
|
||||
---
|
||||
|
||||
# RKE2 Kubernetes Cluster
|
||||
|
||||
## Übersicht
|
||||
## Überblick
|
||||
- **Version:** v1.35.6-rke2r1
|
||||
- **Nodes:** 6 (3 CP + 3 Worker), alle schedulable (keine CP Taints)
|
||||
- **CNI:** Cilium (LB IP Pool)
|
||||
- **⚠️ Cilium-NP-Fallen (2026-10-19):** (1) Selektion⇒Default-Deny je Richtung; (2) `egress: [{}]` erlaubt NICHTS (Null-Allow, kein Wildcard); (3) `io.kubernetes.service.name` ist KEIN Identity-Label → `k8s-app` + namespaceSelector nutzen; (4) VIP-Ingress kommt SNAT't als Identity `world` an → fromEntities [world, host, remote-node]. Alle 4 stumm (kein Warning) — nach jeder CNP-Änderung positiv+negativ verifizieren. Details: `~/docs/solutions/bug-fixes/2026-10-19-cilium-networkpolicy-four-traps.md`
|
||||
- **Ingress:**两层 Traefik (extern CT9999 + intern K8s) + Authelia SSO
|
||||
|
||||
## Node IPs
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
---
|
||||
title: SABnzbd Usenet Downloader + VAAPI AppleTV-Converter
|
||||
category: systems
|
||||
tags: [sabnzbd, usenet, k8s, vaapi, ffmpeg, appletv, smb, argocd-gitops]
|
||||
created: "2026-10-19"
|
||||
modified: "2026-10-19"
|
||||
---
|
||||
|
||||
# SABnzbd Usenet Downloader + VAAPI AppleTV-Converter
|
||||
|
||||
## Überblick
|
||||
SABnzbd 5.1.3 (LinuxServer-Image) im Namespace `sabnzbd` auf RKE2, gepinnt auf **rke2-worker-05** (einziger GPU-Node). Web/API `http://10.0.30.206:8080`, SMB `\\10.0.30.206\downloads` (Sidecar alpine:3.20, fruit/streams_xattr). PVC `sabnzbd-config` 500 Gi (Ceph-RBD, online-resized), Mount `/config`. IaC: `iac-homelab/clusters/main/sabnzbd/` (ArgoCD-App `sabnzbd`).
|
||||
|
||||
## Container
|
||||
- **sabnzbd** (LSIO, PUID 1000): Download-Engine, Postproc-Script `convert720.sh` (Name historisch, Funktion jetzt enqueue-only)
|
||||
- **converter** (Sidecar, `linuxserver/ffmpeg:latest`, **privileged**): Daemon `converter-daemon.sh`, pollt `/config/convert-queue/*.job` alle 20 s
|
||||
- **samba** (Sidecar): SMB-Share `downloads`
|
||||
- Init: seed-config (ersetzt fetch-ffmpeg, seit v4-Tag obsolete)
|
||||
|
||||
## VAAPI / GPU-Encoding
|
||||
- Nur **worker-05** (10.0.30.65) besitzt `/dev/dri/renderD128` (AMD Granite Ridge, render-GID **991**) — worker-04 hat KEINEN render-Node → Pin zwingend
|
||||
- VAAPI in Pods erfordert `privileged: true` (Devices-Cgroup blockt hostPath-Device-Nodes sonst)
|
||||
- Encoder: h264_vaapi/hevc_vaapi, **5.7× schneller** als libx264 (Benchmark 1080p→720p: 4.3 s vs 24.7 s)
|
||||
- CPU-Fallback eingebaut (falls renderD128 fehlt)
|
||||
|
||||
## Converter-Pipeline (Design)
|
||||
1. Postproc (Enqueuer) schreibt Job-File `<ts>-<safe>.job` (Zeile 1: Quelldatei) nach `/config/convert-queue/`, dedupliziert gegen bestehende Jobs (Multi-Release-NZBs rescannen den ganzen Ordner!)
|
||||
2. Daemon nimmt ältesten Job, Guards in dieser Reihenfolge:
|
||||
- **Partials-Discard** (`.converting.*`) — VOR dem Park-Case (v4-Lesson: case-Order!)
|
||||
- **Park-Case** `*/incomplete/*`: nur solange Quelle dort EXISTIERT (`[ -f ]`, v6-Lesson), sonst Durchfallen zum Resolver; Retry-Cap 2160 × 20 s ≈ 12 h
|
||||
- **Resolver**: Quelle nach SAB-Move in `complete/` neu suchen
|
||||
- **Skip-Guard**: Ziel-MP4 existiert und ist AppleTV-ok (MP4+h264+≤720p+AAC) → überspringen. ⚠️ ffprobe `-of csv=p=0` QUOTET Komma-Werte — Quotes strippen (v5-Lesson)!
|
||||
- Encode: VAAPI h264 → 720p, Audio → AAC 192k, `-movflags +faststart`, Temp `.converting.mp4`, Rename bei Erfolg
|
||||
3. Ausgabe neben Quelle in `complete/`; **Originale werden nie gelöscht** (House-Rule)
|
||||
|
||||
## Betrieb & Verifikation
|
||||
```bash
|
||||
kubectl -n sabnzbd logs deploy/sabnzbd -c converter --tail=50 # Daemon-Log
|
||||
kubectl -n sabnzbd exec deploy/sabnzbd -c converter -- ls /config/convert-queue/ | wc -l
|
||||
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,height \
|
||||
-of default=nokey=1:noprint_wrappers=1 <mp4> # AppleTV-Check (unquoted!)
|
||||
```
|
||||
|
||||
## Rollout-Rezept (Skript-Änderung)
|
||||
1. Skript in `configmap.yaml` patchen + `sabnzbd/converter-script-version: "N+1"` im Deployment bumpen (bash liest Skript nur beim Start)
|
||||
2. Commit + Push (Gitea) → `kubectl -n sabnzbd delete cm sabnzbd-postproc-script sabnzbd-converter-script` (ArgoCD-SSA-Hot-Update-Limitierung)
|
||||
3. `kubectl annotate application sabnzbd -n argocd argocd.argoproj.io/refresh=normal --overwrite` → neuer Pod, Daemon startet mit neuem Skript
|
||||
|
||||
## Netzwerk / Sicherheit
|
||||
- CNP `sabnzbd-lan-only`: Ingress von world/host/remote-node (SNAT macht VIP-Clients zu `world`), Port 8080+445; Egress nur DNS + NNTP (443/563/119/80)
|
||||
- API key-protected; Web-UI ohne Login wegen SNAT-Privatranges (Empfehlung `local_ranges` offen)
|
||||
- Privileged Converter = bewusstes Trade-off für VAAPI (dokumentiert)
|
||||
|
||||
## Bekannte Issues / Offene Punkte
|
||||
- **Usenet.Farm Block leer** (482, 10-GB-Trial verbraucht); aktiv: PureUsenet Trial (7 Tage unbegrenzt)
|
||||
- Multi-Release-NZB: SAB verschiebt erst nach Fertigstellung ALLER Sets → 12-h-Park-Puffer ist by design
|
||||
- Originale behalten bis Freigabe (Delete-Rule: niemals ohne explizites GO)
|
||||
- theupperfloor-History-Anomalie unaufgeklärt (par2 ok, trotzdem FAILED)
|
||||
|
||||
## Related Solution Docs
|
||||
- `~/docs/solutions/bug-fixes/2026-10-19-sabnzbd-vaapi-converter-guard-bugs.md` (ffprobe-Quoting, case-Order, Stale-Parking)
|
||||
Reference in New Issue
Block a user