Repository navigation
feat(ceph): add crash auto-archive interval #4349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
b7913a4
133c257
3829fea
a335580
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -438,6 +438,13 @@ spec: | |
| cronjob: | ||
| enabled: true | ||
| type: cronjob | ||
| resources: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Automated finding from AI PR review.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor (style): The new cronjob.resources block duplicates the existing cronjob.cronjob.resources block with identical values; one of the two is dead config depending on the chart schema — reconcile to a single block and remove the dead one. Automated finding from AI PR review. |
||
| requests: | ||
| cpu: 100m | ||
| memory: 500Mi | ||
| limits: | ||
| cpu: 1 | ||
| memory: 2Gi | ||
|
Comment on lines
+441
to
+447
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- target lines ---'
sed -n '425,485p' kubernetes/apps/default/nextcloud/app/helmrelease.yaml
printf '%s\n' '--- chart/version references ---'
rg -n -C 3 'nextcloud|9\.2\.5|cronjob:' kubernetes/apps/default/nextcloud/app/helmrelease.yaml kubernetes/apps/default/nextcloud -g '*.yaml' -g '*.yml' || true
printf '%s\n' '--- cronjob resource keys in repository ---'
rg -n -C 2 'cronjob(\.cronjob)?\.resources|resources:' kubernetes/apps/default/nextcloud/app/helmrelease.yamlRepository: Tanguille/cluster Length of output: 40475 🏁 Script executed (no clone): Length of output: 10902 🏁 Script executed: #!/bin/bash
set -eu
python3 - <<'PY'
from pathlib import Path
from urllib.request import urlopen
release = Path("kubernetes/apps/default/nextcloud/app/helmrelease.yaml").read_text()
oci = Path("kubernetes/apps/default/nextcloud/app/ocirepository.yaml").read_text()
assert "tag: 9.2.5" in oci
base = "https://raw.githubusercontent.com/nextcloud/helm/nextcloud-9.2.5/charts/nextcloud/"
values = urlopen(base + "values.yaml").read().decode()
cronjob_template = urlopen(base + "templates/cronjob.yaml").read().decode()
deployment_template = urlopen(base + "templates/deployment.yaml").read().decode()
assert "cronjob:\n resources:" in release
assert "cronjob:\n failedJobsHistoryLimit:" in release
assert "resources:\n requests:" in release
# The CronJob template enters .Values.cronjob.cronjob before resolving .resources.
assert "{{- with .Values.cronjob.cronjob }}" in cronjob_template
assert "{{- toYaml .resources | nindent 16 }}" in cronjob_template
assert ".Values.cronjob.resources" not in cronjob_template
# The sidecar uses a different, explicit path.
assert "{{- with .Values.cronjob.sidecar }}" in deployment_template
assert "{{- toYaml .resources | nindent 12 }}" in deployment_template
print("chart=9.2.5")
print("cronjob_resources_path=cronjob.cronjob.resources")
print("sidecar_resources_path=cronjob.sidecar.resources")
print("top_level_cronjob_resources_consumed=false")
PYRepository: Tanguille/cluster Length of output: 2441 Remove the unused Chart 9.2.5 reads CronJob resources from 🤖 Prompt for AI AgentsSource: MCP tools |
||
| cronjob: | ||
| failedJobsHistoryLimit: 1 | ||
| successfulJobsHistoryLimit: 2 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,8 @@ spec: | |
| # Network optimization for 2.5Gbps | ||
| ms_osd_compress_min_size: "1024" | ||
| ms_osd_compression_algorithm: snappy | ||
| # Auto-archive Ceph crashes after 1 day (86400 seconds) | ||
| mgr/crash/warn_recent_interval: "86400" | ||
|
Comment on lines
+54
to
+55
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- target file ---'
nl -ba kubernetes/apps/rook-ceph/rook-ceph/cluster/helmrelease.yaml | sed -n '35,70p'
printf '%s\n' '--- related crash settings and issue references ---'
rg -n -C 3 'warn_recent_interval|crash archive|crash.*archive|18088|archive.*crash' kubernetes .github README.md 2>/dev/null || true
printf '%s\n' '--- recent file history summary ---'
git log -5 --oneline -- kubernetes/apps/rook-ceph/rook-ceph/cluster/helmrelease.yamlRepository: Tanguille/cluster Length of output: 1540 🌐 Web query:
💡 Result: The Ceph configuration option mgr/crash/warn_recent_interval defines the time threshold used to determine whether a crash is considered "recent" [1][2]. By default, this interval is set to 2 weeks [1][3]. When a Ceph daemon crashes, the cluster reports a RECENT_CRASH health warning if there are unacknowledged crash reports that occurred within this interval [4][5]. To clear this warning and acknowledge a crash, an administrator can use the command Citations:
🌐 Web query:
💡 Result: The issue referred to as Rook PR Citations:
🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- target file ---'
awk '{printf "%5d %s\n", NR, $0}' kubernetes/apps/rook-ceph/rook-ceph/cluster/helmrelease.yaml | sed -n '35,75p'
printf '%s\n' '--- commit introducing the setting ---'
git show --format=fuller --stat --no-renames b7913a4
git show --format= --no-ext-diff b7913a4 -- kubernetes/apps/rook-ceph/rook-ceph/cluster/helmrelease.yaml
printf '%s\n' '--- Rook version and CephCluster references ---'
rg -n -C 3 'rook-ceph|v1\.20\.3|CephCluster|config:|mgr/crash' kubernetes/apps/rook-cephRepository: Tanguille/cluster Length of output: 18961 🏁 Script executed (no clone): Length of output: 7983 🏁 Script executed (no clone): Length of output: 1027 Do not describe this setting as automatic crash archival.
🤖 Prompt for AI AgentsSource: MCP tools |
||
| mon: | ||
| # Suppress pgmap/audit debug spam; keeps INF/WRN/ERR (was debug). | ||
| mon_cluster_log_level: info | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor (question): The new
resourcesblock at thecronjoblevel duplicates the existingresourcesinside the nestedcronjobkey with identical values (100m/500Mi requests, 1/2Gi limits); this is either redundant or ignored by the chart, and it is unrelated to the PR's stated Ceph purpose.Automated finding from AI PR review.