GNAI-025: Fix — umask 022 vor pct create (umask 077 ließ die rootfs-Extraktion mit Permission denied scheitern); Storage bleibt local-lvm
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 30s
ci-static / markdown-links (push) Successful in 20s

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-11-29 05:47:20 +01:00
co-authored by Mistral Vibe
parent 5d46f4591e
commit 472bd64569
2 changed files with 6 additions and 0 deletions
@@ -12,6 +12,7 @@
| 2026-11-27 | 1.2 | Mistral Vibe | Upstream-Pins gesetzt (Commit 872ed5d, compose-SHA d5558cd, 12 App-Image-Digests); pin-fluxer-images.sh für die restlichen Images; fluxer-worker läuft aus dem fluxer-api-Image |
| 2026-11-27 | 1.3 | Mistral Vibe / Operator | Provisioning: local-lvm-Extraktion schlägt fehl (tar Permission denied), Storage auf daten4 umgestellt (pvesm: daten4 4,7 % belegt); CT 117 noch nicht angelegt |
| 2026-11-27 | 1.4 | Mistral Vibe / Operator | Operator bestätigt: local-lvm hat reichlich Platz und alle bisherigen LXCs liefen dort — Storage-Wechsel auf daten4 war voreilig; Default bleibt local-lvm, Ursache der tar-Permission-denied wird diagnostiziert (LV-Mountpoint nicht schreibbar für uid 100000) |
| 2026-11-27 | 1.5 | Mistral Vibe / Operator | Ursache gefunden: `umask 077` im Provisioning-Skript vererbt sich an `pct create` → rootfs-Mountpoint 0700 root → tar unter lxc-usernsexec får „Permission denied“. Reproduziert (VMID 117 minimal OK, VMID 119 mit umask 077 FAIL). Fix: `umask 022` vor dem pct-Aufruf; Storage bleibt local-lvm |
## 1. Zweck und Leitentscheidung
@@ -135,6 +135,11 @@ pvesm list "$template_storage" | awk '{print $1}' |
grep -qx "$resolved_template" ||
die "template not found in storage ${template_storage}: ${resolved_template}"
# pct create must run with a permissive umask: with umask 077 the rootfs
# mountpoint is created 0700 root-owned and the lxc-usernsexec tar extraction
# fails with "Permission denied" (reproduced 2026-11-27, GNAI-025 1.5).
umask 022
log "creating CT ${CTID} (${HOSTNAME}, ${IPV4_CIDR}) from ${resolved_template}"
log "profile: ${CORES} cores, ${MEMORY_MB} MiB RAM, ${SWAP_MB} MiB swap, ${ROOTFS_GB} GiB rootfs on ${CONTAINER_STORAGE}"
pct create "$CTID" "$resolved_template" \