Repository navigation
Fix local-path PV deletion with SELinux enforcing - #14740
Merged
brandond merged 3 commits intoOct 7, 2026
Merged
Conversation
With SELinux enforcing, the local-path-provisioner create and delete helper pods are assigned different random MCS categories. The volume directory keeps the categories from the create helper, so the delete helper is denied access, the PV stays Released, and the backing directory leaks on the node. Give the helper pod the full category range in the bundled helperPod template. This is the approach from rancher/local-path-provisioner#402, which was reverted upstream (k3s-io#421) only because it was hardcoded in Go and overrode user-supplied templates; setting it in the template keeps it configurable. Also extend the local storage integration test to wait for the PV and its backing directory to actually be removed after the PVC is deleted. Fixes k3s-io#14508 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com>
Look up the backing directory from the PV's spec.local.path instead of hardcoding the storage path, and check it exists before deleting the PVC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com>
local-path-provisioner only re-reads helperPod.yaml when CONFIG_MOUNT_PATH is set; otherwise it loads the template once at startup. k3s rewrites the local-path-config ConfigMap on upgrade, but if the provisioner Deployment is unchanged the running pod keeps using the old template, so changes such as the SELinux level for k3s-io#14508 do not take effect until the pod restarts. Set CONFIG_MOUNT_PATH so the provisioner picks up template changes on its periodic config refresh. Changing the Deployment also rolls the pod once on upgrade to this version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14740 +/- ##
===========================================
+ Coverage 40.47% 51.60% +11.12%
===========================================
Files 170 197 +27
Lines 15528 15919 +391
===========================================
+ Hits 6285 8215 +1930
+ Misses 8010 6401 -1609
- Partials 1233 1303 +70
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
brandond
approved these changes
Oct 6, 2026
Contributor
Author
|
The embeddedmirror/privateregistry E2E are also failing in main with the exact same error. Looks unrelated to this change. |
vitorsavian
approved these changes
Oct 6, 2026
manuelbuil
approved these changes
Oct 7, 2026
This was referenced Oct 16, 2026
brandond
pushed a commit
to brandond/k3s
that referenced
this pull request
Oct 16, 2026
* Set SELinux level on local-path helper pod so PVs can be deleted With SELinux enforcing, the local-path-provisioner create and delete helper pods are assigned different random MCS categories. The volume directory keeps the categories from the create helper, so the delete helper is denied access, the PV stays Released, and the backing directory leaks on the node. Give the helper pod the full category range in the bundled helperPod template. This is the approach from rancher/local-path-provisioner#402, which was reverted upstream (k3s-io#421) only because it was hardcoded in Go and overrode user-supplied templates; setting it in the template keeps it configurable. Also extend the local storage integration test to wait for the PV and its backing directory to actually be removed after the PVC is deleted. Fixes k3s-io#14508 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Read local-path volume path from the PV in integration test Look up the backing directory from the PV's spec.local.path instead of hardcoding the storage path, and check it exists before deleting the PVC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Reload local-path helper pod template when the ConfigMap changes local-path-provisioner only re-reads helperPod.yaml when CONFIG_MOUNT_PATH is set; otherwise it loads the template once at startup. k3s rewrites the local-path-config ConfigMap on upgrade, but if the provisioner Deployment is unchanged the running pod keeps using the old template, so changes such as the SELinux level for k3s-io#14508 do not take effect until the pod restarts. Set CONFIG_MOUNT_PATH so the provisioner picks up template changes on its periodic config refresh. Changing the Deployment also rolls the pod once on upgrade to this version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> --------- Signed-off-by: santimillang <santimillang@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 807ac3c) Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
brandond
pushed a commit
to brandond/k3s
that referenced
this pull request
Oct 16, 2026
* Set SELinux level on local-path helper pod so PVs can be deleted With SELinux enforcing, the local-path-provisioner create and delete helper pods are assigned different random MCS categories. The volume directory keeps the categories from the create helper, so the delete helper is denied access, the PV stays Released, and the backing directory leaks on the node. Give the helper pod the full category range in the bundled helperPod template. This is the approach from rancher/local-path-provisioner#402, which was reverted upstream (k3s-io#421) only because it was hardcoded in Go and overrode user-supplied templates; setting it in the template keeps it configurable. Also extend the local storage integration test to wait for the PV and its backing directory to actually be removed after the PVC is deleted. Fixes k3s-io#14508 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Read local-path volume path from the PV in integration test Look up the backing directory from the PV's spec.local.path instead of hardcoding the storage path, and check it exists before deleting the PVC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Reload local-path helper pod template when the ConfigMap changes local-path-provisioner only re-reads helperPod.yaml when CONFIG_MOUNT_PATH is set; otherwise it loads the template once at startup. k3s rewrites the local-path-config ConfigMap on upgrade, but if the provisioner Deployment is unchanged the running pod keeps using the old template, so changes such as the SELinux level for k3s-io#14508 do not take effect until the pod restarts. Set CONFIG_MOUNT_PATH so the provisioner picks up template changes on its periodic config refresh. Changing the Deployment also rolls the pod once on upgrade to this version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> --------- Signed-off-by: santimillang <santimillang@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 807ac3c) Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
brandond
pushed a commit
that referenced
this pull request
Oct 16, 2026
* Set SELinux level on local-path helper pod so PVs can be deleted With SELinux enforcing, the local-path-provisioner create and delete helper pods are assigned different random MCS categories. The volume directory keeps the categories from the create helper, so the delete helper is denied access, the PV stays Released, and the backing directory leaks on the node. Give the helper pod the full category range in the bundled helperPod template. This is the approach from rancher/local-path-provisioner#402, which was reverted upstream (#421) only because it was hardcoded in Go and overrode user-supplied templates; setting it in the template keeps it configurable. Also extend the local storage integration test to wait for the PV and its backing directory to actually be removed after the PVC is deleted. Fixes #14508 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Read local-path volume path from the PV in integration test Look up the backing directory from the PV's spec.local.path instead of hardcoding the storage path, and check it exists before deleting the PVC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Reload local-path helper pod template when the ConfigMap changes local-path-provisioner only re-reads helperPod.yaml when CONFIG_MOUNT_PATH is set; otherwise it loads the template once at startup. k3s rewrites the local-path-config ConfigMap on upgrade, but if the provisioner Deployment is unchanged the running pod keeps using the old template, so changes such as the SELinux level for #14508 do not take effect until the pod restarts. Set CONFIG_MOUNT_PATH so the provisioner picks up template changes on its periodic config refresh. Changing the Deployment also rolls the pod once on upgrade to this version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> --------- Signed-off-by: santimillang <santimillang@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 807ac3c) Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
brandond
pushed a commit
that referenced
this pull request
Oct 16, 2026
* Set SELinux level on local-path helper pod so PVs can be deleted With SELinux enforcing, the local-path-provisioner create and delete helper pods are assigned different random MCS categories. The volume directory keeps the categories from the create helper, so the delete helper is denied access, the PV stays Released, and the backing directory leaks on the node. Give the helper pod the full category range in the bundled helperPod template. This is the approach from rancher/local-path-provisioner#402, which was reverted upstream (#421) only because it was hardcoded in Go and overrode user-supplied templates; setting it in the template keeps it configurable. Also extend the local storage integration test to wait for the PV and its backing directory to actually be removed after the PVC is deleted. Fixes #14508 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Read local-path volume path from the PV in integration test Look up the backing directory from the PV's spec.local.path instead of hardcoding the storage path, and check it exists before deleting the PVC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Reload local-path helper pod template when the ConfigMap changes local-path-provisioner only re-reads helperPod.yaml when CONFIG_MOUNT_PATH is set; otherwise it loads the template once at startup. k3s rewrites the local-path-config ConfigMap on upgrade, but if the provisioner Deployment is unchanged the running pod keeps using the old template, so changes such as the SELinux level for #14508 do not take effect until the pod restarts. Set CONFIG_MOUNT_PATH so the provisioner picks up template changes on its periodic config refresh. Changing the Deployment also rolls the pod once on upgrade to this version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> --------- Signed-off-by: santimillang <santimillang@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 807ac3c) Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
brandond
pushed a commit
that referenced
this pull request
Oct 16, 2026
* Set SELinux level on local-path helper pod so PVs can be deleted With SELinux enforcing, the local-path-provisioner create and delete helper pods are assigned different random MCS categories. The volume directory keeps the categories from the create helper, so the delete helper is denied access, the PV stays Released, and the backing directory leaks on the node. Give the helper pod the full category range in the bundled helperPod template. This is the approach from rancher/local-path-provisioner#402, which was reverted upstream (#421) only because it was hardcoded in Go and overrode user-supplied templates; setting it in the template keeps it configurable. Also extend the local storage integration test to wait for the PV and its backing directory to actually be removed after the PVC is deleted. Fixes #14508 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Read local-path volume path from the PV in integration test Look up the backing directory from the PV's spec.local.path instead of hardcoding the storage path, and check it exists before deleting the PVC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Reload local-path helper pod template when the ConfigMap changes local-path-provisioner only re-reads helperPod.yaml when CONFIG_MOUNT_PATH is set; otherwise it loads the template once at startup. k3s rewrites the local-path-config ConfigMap on upgrade, but if the provisioner Deployment is unchanged the running pod keeps using the old template, so changes such as the SELinux level for #14508 do not take effect until the pod restarts. Set CONFIG_MOUNT_PATH so the provisioner picks up template changes on its periodic config refresh. Changing the Deployment also rolls the pod once on upgrade to this version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> --------- Signed-off-by: santimillang <santimillang@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 807ac3c) Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
brandond
pushed a commit
that referenced
this pull request
Oct 16, 2026
* Set SELinux level on local-path helper pod so PVs can be deleted With SELinux enforcing, the local-path-provisioner create and delete helper pods are assigned different random MCS categories. The volume directory keeps the categories from the create helper, so the delete helper is denied access, the PV stays Released, and the backing directory leaks on the node. Give the helper pod the full category range in the bundled helperPod template. This is the approach from rancher/local-path-provisioner#402, which was reverted upstream (#421) only because it was hardcoded in Go and overrode user-supplied templates; setting it in the template keeps it configurable. Also extend the local storage integration test to wait for the PV and its backing directory to actually be removed after the PVC is deleted. Fixes #14508 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Read local-path volume path from the PV in integration test Look up the backing directory from the PV's spec.local.path instead of hardcoding the storage path, and check it exists before deleting the PVC. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> * Reload local-path helper pod template when the ConfigMap changes local-path-provisioner only re-reads helperPod.yaml when CONFIG_MOUNT_PATH is set; otherwise it loads the template once at startup. k3s rewrites the local-path-config ConfigMap on upgrade, but if the provisioner Deployment is unchanged the running pod keeps using the old template, so changes such as the SELinux level for #14508 do not take effect until the pod restarts. Set CONFIG_MOUNT_PATH so the provisioner picks up template changes on its periodic config refresh. Changing the Deployment also rolls the pod once on upgrade to this version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: santimillang <santimillang@gmail.com> --------- Signed-off-by: santimillang <santimillang@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 807ac3c) Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
patrickjmcd
pushed a commit
to patrickjmcd/k8s-argo
that referenced
this pull request
Nov 4, 2026
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [k3s-io/k3s](https://github.com/k3s-io/k3s) | patch | `v1.37.1+k3s1` → `v1.37.2+k3s1` | Merging starts the node upgrade rollout immediately (Flux applies it within minutes). Servers upgrade first, then agents, one node at a time. Never merge a minor-version jump larger than one; check no Proxmox host maintenance is in progress. --- ### Release Notes <details> <summary>k3s-io/k3s</summary> ### [`v1.37.2+k3s1`](https://github.com/k3s-io/k3s/releases/tag/v1.37.2%2Bk3s1): v1.37.2+k3s1 [Compare Source](k3s-io/k3s@v1.37.1+k3s1...v1.37.2+k3s1) <!-- v1.37.2+k3s1 --> This release updates Kubernetes to v1.37.2, and fixes a number of issues. For more details on what's new, see the [Kubernetes release notes](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.37.md#changelog-since-v1371). ##### Changes since v1.37.1+k3s1: - Add gateway-api-crd to help [(#​14727)](k3s-io/k3s#14727) - Run snapshotrestore test entries in parallel [(#​14733)](k3s-io/k3s#14733) - Deps: bump containerd to v2.3.6 [(#​14744)](k3s-io/k3s#14744) - Bump Traefik to v3.7.14 and gateway-api to 1.6.2 [(#​14757)](k3s-io/k3s#14757) - Bump gateway-api to 1.6.3 [(#​14769)](k3s-io/k3s#14769) - Bump K3s-root version to v0.15.3 [(#​14782)](k3s-io/k3s#14782) - Bump flannel to v0.28.10 [(#​14796)](k3s-io/k3s#14796) - Bump containerd to v2.3.7 [(#​14805)](k3s-io/k3s#14805) - Update kube-roter to v2.11.1 [(#​14762)](k3s-io/k3s#14762) - Remove unused replace directives [(#​14821)](k3s-io/k3s#14821) - Bump Klipper Helm and Helm Controller version [(#​14814)](k3s-io/k3s#14814) - Backports for 2026-10 [(#​14825)](k3s-io/k3s#14825) - Prevent systemd restart loop when no default route is present by waiting 60 seconds for default route to appear [#​14527](k3s-io/k3s#14527) - Exclude kms-providers from apiserver readiness check [#​14635](k3s-io/k3s#14635) - Clarify etcd local vs S3 snapshot retention flag help [#​14716](k3s-io/k3s#14716) - Update ServiceLB status when node addresses change [#​14550](k3s-io/k3s#14550) - Omit default SA key flags when service-account-signing-endpoint is set [#​14719](k3s-io/k3s#14719) - Fix local-path PV deletion with SELinux enforcing [#​14740](k3s-io/k3s#14740) - Feature/14562 etcd snapshot restrictions [#​14678](k3s-io/k3s#14678) - Report image list read errors when pre-pulling images [#​14732](k3s-io/k3s#14732) - Migrate CI from docker to GHCR [#​14603](k3s-io/k3s#14603) - Fix etcd member removal when etcd is disabled on an existing server [#​14801](k3s-io/k3s#14801) - Docker tests: add gateway-api test [#​14802](k3s-io/k3s#14802) - Fix goroutine leak in the proxy [#​14811](k3s-io/k3s#14811) - Make etcdsnapshot restrictions integration test respect the test lock [#​14820](k3s-io/k3s#14820) - Bump rancher/mirrored-library-traefik image version [(#​14833)](k3s-io/k3s#14833) - Bump Klipper Helm and Helm Controller version [(#​14874)](k3s-io/k3s#14874) - Pin runners to ubuntu-24.04 [(#​14918)](k3s-io/k3s#14918) - Bump k3s-io/kubernetes and Go references [(#​14925)](k3s-io/k3s#14925) - Bump x/net and pass `golang.org/x/` replacements through when building bundled binaries [(#​14935)](k3s-io/k3s#14935) ##### Embedded Component Versions | Component | Version | | -------------------------- | ------------------------------------------------------------------------------------------------------------ | | Kubernetes | [v1.37.2](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.37.md#v1372) | | Kine | [v0.17.1](https://github.com/k3s-io/kine/releases/tag/v0.17.1) | | SQLite | [3.53.4](https://sqlite.org/releaselog/3_53_4.html) | | Etcd | [v3.7.1-k3s3](https://github.com/k3s-io/etcd/releases/tag/v3.7.1-k3s3) | | Containerd | [v2.3.7-k3s1](https://github.com/k3s-io/containerd/releases/tag/v2.3.7-k3s1) | | Runc | [v1.4.2](https://github.com/opencontainers/runc/releases/tag/v1.4.2) | | Flannel | [v0.28.10](https://github.com/flannel-io/flannel/releases/tag/v0.28.10) | | Metrics-server | [v0.9.0](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.9.0) | | Traefik | [v3.7.15](https://github.com/traefik/traefik/releases/tag/v3.7.15) | | CoreDNS | [v1.14.7](https://github.com/coredns/coredns/releases/tag/v1.14.7) | | Helm-controller | [v0.17.9](https://github.com/k3s-io/helm-controller/releases/tag/v0.17.9) | | Local-path-provisioner | [v0.0.37](https://github.com/rancher/local-path-provisioner/releases/tag/v0.0.37) | | Kubernetes Gateway API CRD | [1.6.301](https://github.com/k3s-io/k3s-charts/blob/main/assets/gateway-api-crd/gateway-api-crd-1.6.301.tgz) | ##### Helpful Links As always, we welcome and appreciate feedback from our community of users. Please feel free to: - [Open issues here](https://github.com/rancher/k3s/issues/new/choose) - [Join our Slack channel](https://slack.rancher.io/) - [Check out our documentation](https://rancher.com/docs/k3s/latest/en/) for guidance on how to get started or to dive deep into K3s. - [Read how you can contribute here](https://github.com/rancher/k3s/blob/master/CONTRIBUTING.md) </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMTUuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjIxNi4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJuZWVkcy1yZXZpZXciLCJyZW5vdmF0ZS9wYXRjaCJdfQ==--> Reviewed-on: https://git.x.pmcd.io/patrickjmcd/k8s-argo/pulls/32 Co-authored-by: Renovate Bot <renovate@noreply.git.x.pmcd.io>
rogerrum
pushed a commit
to rogerrum/k8s-gitops
that referenced
this pull request
Nov 25, 2026
….2+k3s1 ) (#3778) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [k3s-io/k3s](https://github.com/k3s-io/k3s) | patch | `v1.37.1+k3s1` → `v1.37.2+k3s1` | --- >⚠️ **Warning** > > Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/3566) for more information. --- ### Release Notes <details> <summary>k3s-io/k3s</summary> ### [`v1.37.2+k3s1`](https://github.com/k3s-io/k3s/releases/tag/v1.37.2%2Bk3s1): v1.37.2+k3s1 [Compare Source](k3s-io/k3s@v1.37.1+k3s1...v1.37.2+k3s1) <!-- v1.37.2+k3s1 --> This release updates Kubernetes to v1.37.2, and fixes a number of issues. For more details on what's new, see the [Kubernetes release notes](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.37.md#changelog-since-v1371). ##### Changes since v1.37.1+k3s1: - Add gateway-api-crd to help [(#​14727)](k3s-io/k3s#14727) - Run snapshotrestore test entries in parallel [(#​14733)](k3s-io/k3s#14733) - Deps: bump containerd to v2.3.6 [(#​14744)](k3s-io/k3s#14744) - Bump Traefik to v3.7.14 and gateway-api to 1.6.2 [(#​14757)](k3s-io/k3s#14757) - Bump gateway-api to 1.6.3 [(#​14769)](k3s-io/k3s#14769) - Bump K3s-root version to v0.15.3 [(#​14782)](k3s-io/k3s#14782) - Bump flannel to v0.28.10 [(#​14796)](k3s-io/k3s#14796) - Bump containerd to v2.3.7 [(#​14805)](k3s-io/k3s#14805) - Update kube-roter to v2.11.1 [(#​14762)](k3s-io/k3s#14762) - Remove unused replace directives [(#​14821)](k3s-io/k3s#14821) - Bump Klipper Helm and Helm Controller version [(#​14814)](k3s-io/k3s#14814) - Backports for 2026-10 [(#​14825)](k3s-io/k3s#14825) - Prevent systemd restart loop when no default route is present by waiting 60 seconds for default route to appear [#​14527](k3s-io/k3s#14527) - Exclude kms-providers from apiserver readiness check [#​14635](k3s-io/k3s#14635) - Clarify etcd local vs S3 snapshot retention flag help [#​14716](k3s-io/k3s#14716) - Update ServiceLB status when node addresses change [#​14550](k3s-io/k3s#14550) - Omit default SA key flags when service-account-signing-endpoint is set [#​14719](k3s-io/k3s#14719) - Fix local-path PV deletion with SELinux enforcing [#​14740](k3s-io/k3s#14740) - Feature/14562 etcd snapshot restrictions [#​14678](k3s-io/k3s#14678) - Report image list read errors when pre-pulling images [#​14732](k3s-io/k3s#14732) - Migrate CI from docker to GHCR [#​14603](k3s-io/k3s#14603) - Fix etcd member removal when etcd is disabled on an existing server [#​14801](k3s-io/k3s#14801) - Docker tests: add gateway-api test [#​14802](k3s-io/k3s#14802) - Fix goroutine leak in the proxy [#​14811](k3s-io/k3s#14811) - Make etcdsnapshot restrictions integration test respect the test lock [#​14820](k3s-io/k3s#14820) - Bump rancher/mirrored-library-traefik image version [(#​14833)](k3s-io/k3s#14833) - Bump Klipper Helm and Helm Controller version [(#​14874)](k3s-io/k3s#14874) - Pin runners to ubuntu-24.04 [(#​14918)](k3s-io/k3s#14918) - Bump k3s-io/kubernetes and Go references [(#​14925)](k3s-io/k3s#14925) - Bump x/net and pass `golang.org/x/` replacements through when building bundled binaries [(#​14935)](k3s-io/k3s#14935) ##### Embedded Component Versions | Component | Version | | -------------------------- | ------------------------------------------------------------------------------------------------------------ | | Kubernetes | [v1.37.2](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.37.md#v1372) | | Kine | [v0.17.1](https://github.com/k3s-io/kine/releases/tag/v0.17.1) | | SQLite | [3.53.4](https://sqlite.org/releaselog/3_53_4.html) | | Etcd | [v3.7.1-k3s3](https://github.com/k3s-io/etcd/releases/tag/v3.7.1-k3s3) | | Containerd | [v2.3.7-k3s1](https://github.com/k3s-io/containerd/releases/tag/v2.3.7-k3s1) | | Runc | [v1.4.2](https://github.com/opencontainers/runc/releases/tag/v1.4.2) | | Flannel | [v0.28.10](https://github.com/flannel-io/flannel/releases/tag/v0.28.10) | | Metrics-server | [v0.9.0](https://github.com/kubernetes-sigs/metrics-server/releases/tag/v0.9.0) | | Traefik | [v3.7.15](https://github.com/traefik/traefik/releases/tag/v3.7.15) | | CoreDNS | [v1.14.7](https://github.com/coredns/coredns/releases/tag/v1.14.7) | | Helm-controller | [v0.17.9](https://github.com/k3s-io/helm-controller/releases/tag/v0.17.9) | | Local-path-provisioner | [v0.0.37](https://github.com/rancher/local-path-provisioner/releases/tag/v0.0.37) | | Kubernetes Gateway API CRD | [1.6.301](https://github.com/k3s-io/k3s-charts/blob/main/assets/gateway-api-crd/gateway-api-crd-1.6.301.tgz) | ##### Helpful Links As always, we welcome and appreciate feedback from our community of users. Please feel free to: - [Open issues here](https://github.com/rancher/k3s/issues/new/choose) - [Join our Slack channel](https://slack.rancher.io/) - [Check out our documentation](https://rancher.com/docs/k3s/latest/en/) for guidance on how to get started or to dive deep into K3s. - [Read how you can contribute here](https://github.com/rancher/k3s/blob/master/CONTRIBUTING.md) </details> --- ### Configuration 📅 **Schedule**: (in timezone America/Chicago) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Operator](https://github.com/mogenius/renovate-operator). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNTEuMiIsInVwZGF0ZWRJblZlciI6IjQ0LjE1MS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9naXRodWItcmVsZWFzZSIsInR5cGUvcGF0Y2giXX0=--> Reviewed-on: https://git.rsr.net/roger/k8s-gitops/pulls/3778
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
With SELinux enforcing and
selinux: true, local-path PVs can't be deleted. Each pod gets a random MCS category pair. The volume directory keeps the categories from the pod that labelled it, so the delete helper'srmis denied. The PV staysReleased(create process timeout after 120 seconds) and the directory leaks.Two changes to
manifests/local-storage.yaml:helperPod.yamlnow setsseLinuxOptions.level: s0-s0:c0.c1023. This is the fix from Give the helper pod more range of MCS categories rancher/local-path-provisioner#402, which was reverted in Update SAN via flag #421 only because it was hardcoded in Go and overrode user templates. Setting it in the template avoids that problem.CONFIG_MOUNT_PATH=/etc/config/on the provisioner. Without it, the provisioner readshelperPod.yamlonly at startup, so upgraded clusters keep the old template and (1) doesn't take effect until the pod restarts. Upstream sets this by default in its manifest and Helm chart.The integration test now also checks that the PV and its directory are actually removed after PVC deletion.
Types of Changes
Bugfix
Verification
Tested on Rocky Linux 9.8 with SELinux enforcing,
k3s-selinux-1.6, andselinux: true. Each run creates a PVC and a pod that writes to it, then deletes both:v1.36.5+k3s1Released, directory leakedsystemctl restart k3s)CONFIG_MOUNT_PATHTo reproduce, follow the steps in #14508. The denial doesn't show up in
ausearch.Testing
tests/integration/localstoragepasses 7/7 on the same VM with SELinux enforcing. CI doesn't run with SELinux, so it covers the delete path but not the MCS denial itself.Linked Issues
Fixes #14508. Related: #10130, rancher/local-path-provisioner#402, #421
User-Facing Change
🤖 Generated with Claude Code