Skip to content

tentacle: qa: fix misleading "in cluster log" failures during cluster log scan - #68447

Merged
batrick merged 1 commit into
ceph:tentaclefrom
rkachach:fix_issue_76078
Oct 12, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
rkachach:fix_issue_76078

Conversation

@rkachach

Copy link
Copy Markdown
Contributor

Backport of #68392

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@rkachach
rkachach requested a review from a team as a code owner April 17, 2026 13:32
@github-actions github-actions Bot added this to the tentacle milestone Apr 17, 2026
@rkachach
rkachach requested review from yuriw and removed request for a team April 17, 2026 13:32
@rkachach rkachach assigned zmc and unassigned zmc Apr 17, 2026
@rkachach
rkachach requested review from adk3798 and zmc April 17, 2026 13:32
@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label May 2, 2026
batrick

This comment was marked as outdated.

@batrick batrick added releng-audit-fail Release engineering: failed backport verification audit. and removed releng-audit-queue Release engineering: queued for backport verification audit. labels May 2, 2026
@github-actions

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@rkachach

rkachach commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor Author

@batrick not sure what's needed here, to improve the tracking I tend to put some extra info on the commits for backports (adding both the original tracker and the backport tracker) and that's what the automated diff checker is finding. Plz advice how should I proceed.

@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Jul 13, 2026
@github-actions github-actions Bot removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-fail Release engineering: failed backport verification audit. labels Jul 13, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 13, 2026
@yuriw

yuriw commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@rkachach pls rebase

Summary:

Fix misleading failure reasons reported as `"… in cluster log"` when
no such log entry actually exists.

The cephadm task currently treats `grep` errors from the cluster log
scan as if they were actual log matches. This can produce bogus
failure summaries when `ceph.log` is missing, especially after early
failures such as image pull or bootstrap problems.

Problem:

first_in_ceph_log() currently:

- returns stdout if a match is found
- otherwise returns stderr

The caller then treats any non-None value as a real cluster log hit and formats it as:

"<value>" in cluster log

That means an error like:

  grep: /var/log/ceph/<fsid>/ceph.log: No such file or directory

can be misreported as if it came from the cluster log.

This change makes cluster log scanning robust and accurate by:

- checking whether /var/log/ceph/<fsid>/ceph.log exists before scanning
- using check_status=False for the grep pipeline
- treating only stdout as a real log match
- treating stderr as a scan error instead of log content
- avoiding overwrite of a more accurate pre-existing failure_reason
- reporting scan failures separately as cluster log scan failed

Fixes: https://tracker.ceph.com/issues/76051 (original ticket PR)
Fixes: https://tracker.ceph.com/issues/76078 (Tentale ticket)
Signed-off-by: Redouane Kachach <[email protected]>
(cherry picked from commit 7b2a914)
@rkachach

rkachach commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

@yuriw rebased 👍

@rkachach
rkachach requested a review from batrick September 4, 2026 08:53
@batrick batrick removed the releng-audit-fail Release engineering: failed backport verification audit. label Sep 9, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Sep 9, 2026
@batrick batrick removed the releng-audit-fail Release engineering: failed backport verification audit. label Sep 9, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Sep 9, 2026
@batrick batrick modified the milestones: tentacle, v20.2.5 Sep 9, 2026
@rkachach rkachach changed the title qa: fix misleading "in cluster log" failures during cluster log scan tentacle: qa: fix misleading "in cluster log" failures during cluster log scan Oct 6, 2026
@yuriw

yuriw commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri6-testing-20261007.154541-tentacle.

@batrick
batrick merged commit 89ddcae into ceph:tentacle Oct 12, 2026
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cephadm needs-qa releng-audit-pass Release engineering: passed backport verification audit. tests wip-yuri6-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants