fix(woodpecker): ephemeral CephFS StorageClass for CI workspaces (PV leak) #264

Merged
k.renner merged 1 commits from fix/woodpecker-pv-leak into master 2026-07-16 14:34:27 +00:00
Member

Follow-up to #262: every finished Woodpecker pipeline leaked one Released PV (191 accumulated) because workspace PVCs land on the Retain-policy ceph-filesystem class.

  • New ceph-filesystem-ephemeral StorageClass: identical CephFS parameters, reclaimPolicy: Delete — scoped to throwaway volumes only.
  • WOODPECKER_BACKEND_K8S_STORAGE_CLASS → ceph-filesystem-ephemeral (RWX behavior unchanged).
  • Production PVCs keep Retain.

The 191 existing Released PVs are being swept out-of-band (patch to Delete + remove; CSI reclaims the CephFS subvolumes). Also: e2e is now fully green — run 1144 passed 63/63 after #263.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NV7bZzZLeoFUEdAeCSLEei

Follow-up to #262: every finished Woodpecker pipeline leaked one Released PV (191 accumulated) because workspace PVCs land on the Retain-policy ceph-filesystem class. - New `ceph-filesystem-ephemeral` StorageClass: identical CephFS parameters, `reclaimPolicy: Delete` — scoped to throwaway volumes only. - `WOODPECKER_BACKEND_K8S_STORAGE_CLASS` → `ceph-filesystem-ephemeral` (RWX behavior unchanged). - Production PVCs keep Retain. The 191 existing Released PVs are being swept out-of-band (patch to Delete + remove; CSI reclaims the CephFS subvolumes). Also: e2e is now fully green — run 1144 passed 63/63 after #263. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01NV7bZzZLeoFUEdAeCSLEei
claude-bot added 1 commit 2026-07-16 14:32:27 +00:00
Woodpecker's k8s backend deletes each workspace PVC when a pipeline
ends, but ceph-filesystem has reclaimPolicy Retain, so every finished
pipeline left a Released PV pinning a CephFS subvolume — 191 of them
by 2026-07-16 (found in #262). New ceph-filesystem-ephemeral class
(identical parameters, reclaimPolicy Delete) used only by the CI
workspace volumes; production PVCs keep the undoable Retain default.

Existing Released woodpecker-ci PVs are swept out-of-band (they
predate this class and are unaffected by it).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NV7bZzZLeoFUEdAeCSLEei
k.renner merged commit fdfad3843b into master 2026-07-16 14:34:27 +00:00
Sign in to join this conversation.