You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pods can continue running while Longhorn-backed mounts become read-only after filesystem errors; restarting workloads may recover but there was no proactive signal. This change adds cluster-side detection for read-only mount symptoms and Longhorn disk-capacity pressure.
CopilotAI
changed the title
[WIP] Add detection for read-only mounted storage in pods
Add Longhorn storage health probe for read-only mount failures and disk pressure
May 26, 2026
@copilot is this disk usage within the longhorn volumes themselves?
also where do the notifications go to?
Not currently inside each mounted volume filesystem. The check uses nodes.longhorn.io diskStatus (storageMaximum vs storageAvailable), so it measures Longhorn backing-disk capacity on each Longhorn node/disk.
Right now this CronJob does not send external notifications by itself; it only fails the Job and logs findings. So visibility is in Job status/logs (and any cluster-wide alerting you already have on failed Jobs/CronJobs). The existing Flux Slack alert in this repo is for Flux resources in flux-system, not this longhorn-system CronJob.
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
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.
Pods can continue running while Longhorn-backed mounts become read-only after filesystem errors; restarting workloads may recover but there was no proactive signal. This change adds cluster-side detection for read-only mount symptoms and Longhorn disk-capacity pressure.
What changed
cluster/core/longhorn-system/storage-health-check.yamlwith:ServiceAccount+ scopedClusterRole/ClusterRoleBindingCronJob(longhorn-storage-health-check) on a 15-minute cadencecluster/core/longhorn-system/kustomization.yaml.Detection coverage
read-only file system,erofs,remount-ro)faulted, orattachedbut nothealthy)>=85%used)Operational behavior
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
charts.fairwinds.com/usr/local/bin/helm helm repo add fairwinds-stable REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either: