Skip to content

qa/tests: fix POOL_FULL ignorelist pattern in upgrade tests - #70120

Merged
yuriw merged 2 commits into
mainfrom
wip-yuriw-78149-fix-main
Jul 23, 2026
Merged

yuriw merged 2 commits into
mainfrom
wip-yuriw-78149-fix-main

Conversation

@yuriw

@yuriw yuriw commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Contribution Guidelines

What this does

qa/overrides/upgrade_ignorelist_health.yaml ignorelists \(POOL_FULL\), which
only matches the cluster-log format used for "Health check failed/update"
messages (code wrapped in parens, e.g. ... (POOL_FULL)). It misses the
"Health check cleared" format, where the code is not parenthesized
(Health check cleared: POOL_FULL (was: ...)) — see src/mon/Monitor.cc.
So a pool clearing its full state mid-upgrade-test was not ignorelisted,
which can fail the log scan.

Dropping the escaped parens matches both forms, consistent with other
bare entries already in this file (OSD_ROOT_DOWN, MDS_INSUFFICIENT_STANDBY).

Not a duplicate of #75414/#68325 — those cover different files
(qa/suites/upgrade/{squid,tentacle}-x/**), never this shared file. See
discussion on #69791.

Fixes: https://tracker.ceph.com/issues/78149

Checklist

  • Tracker (select at least one)
    • References tracker ticket
  • Component impact
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • No doc update is appropriate
  • Tests (select at least one)
    • No tests

\(POOL_FULL\) only matches the "Health check failed/update" cluster-log
format (code wrapped in parens). It misses the "Health check cleared"
format, where the code is not parenthesized (see src/mon/Monitor.cc),
so a pool clearing its full state mid-upgrade-test was not ignorelisted.
Drop the escaped parens so the pattern matches both forms, consistent
with other bare entries already in this file (OSD_ROOT_DOWN,
MDS_INSUFFICIENT_STANDBY).

Fixes: https://tracker.ceph.com/issues/78149
Signed-off-by: Yuri Weinstein <[email protected]>
@github-actions github-actions Bot added the tests label Jul 10, 2026
@yuriw
yuriw requested a review from batrick July 10, 2026 15:54
@yuriw

yuriw commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

This also needs a squid backport once merged — see https://tracker.ceph.com/issues/78149 (Backport: squid already set) and the related discussion on #69791.

@idryomov idryomov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It misses the "Health check cleared" format, where the code is not parenthesized (Health check cleared: POOL_FULL (was: ...))
[...]
Dropping the escaped parens matches both forms, consistent with other bare entries already in this file (OSD_ROOT_DOWN, MDS_INSUFFICIENT_STANDBY).

This file has a lot more parenthesized entries than "bare" entries (e.g. MON_DOWN, PG_AVAILABILITY, etc). Don't they represent another instance of the same problem?

Not a duplicate of #75414/#68325 — those cover different files (qa/suites/upgrade/{squid,tentacle}-x/**), never this shared file. See discussion on #69791.

In addition to "bare" POOL_FULL, #68325 also covered pool full and pool\(s\) full patterns. Do those need to be covered in this file as well for the suppression to be reliable?

@idryomov

Copy link
Copy Markdown
Contributor

Backport: squid

Why is this PR (via https://tracker.ceph.com/issues/78149) set to be backported only to squid? The file in question exists in tentacle and umbrella branches too.

@ljflores

Copy link
Copy Markdown
Member

Backport: squid

Why is this PR (via https://tracker.ceph.com/issues/78149) set to be backported only to squid? The file in question exists in tentacle and umbrella branches too.

@idryomov context is here: #69791 (comment)

@yuriw I think it might make the most sense to close #69791 and backport this fix to umbrella, tentacle, and squid once it merges to main.

@ljflores

Copy link
Copy Markdown
Member

jenkins test api

@ljflores

Copy link
Copy Markdown
Member

@idryomov WDYT?

@idryomov

Copy link
Copy Markdown
Contributor

@idryomov WDYT?

Both questions posed in #70120 (review) are still outstanding.

@yuriw

yuriw commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor Author

This file has a lot more parenthesized entries than "bare" entries (e.g. MON_DOWN, PG_AVAILABILITY, etc). Don't they represent another instance of the same problem?

Good catch — checked src/mon/Monitor.cc, and the "cleared" code path is generic:

clog->info() << "Health check cleared: " << p.first << " (was: "
             << p.second.summary << ")";

(with DEGRADED_OBJECTS and OSD_FLAGS hardcoded to different wording entirely).
So yes, in principle any parenthesized entry in this file has the same latent
gap: if that specific check clears mid-upgrade-test, its "Health check cleared:
<CODE> (was: ...)" line won't match \(<CODE>\).

I scoped this PR to POOL_FULL because that's the one actually observed failing
a log scan (tracker #78149) — I didn't want to blind-fix entries that haven't
shown this failure mode, in case some of them never realistically clear mid-test
(e.g. only ever raised right up to cluster teardown, with no "cleared" line ever
logged before the scan runs).

Happy to broaden this if you'd rather fix the whole class now rather than
whack-a-mole it one tracker at a time — let me know which you'd prefer and I'll
either extend this PR or file a follow-up tracker to audit the rest of the list.

@idryomov WDYT?

@yuriw
yuriw requested a review from idryomov July 15, 2026 17:24
@yuriw

yuriw commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

@idryomov re:

In addition to "bare" POOL_FULL, #68325 also covered pool full and pool\(s\) full patterns. Do those need to be covered in this file as well for the suppression to be reliable?

No, they shouldn't be needed. Monitor.cc always logs the code token, not just the summary:

Health check failed: <summary> (POOL_FULL)
Health check cleared: POOL_FULL (was: <summary>)

True for both producers — PGMap.cc:3137 ("N pools full") and OSDMap.cc:7909 ("N pool(s) full"). ignorelist entries are unanchored grep -v, so bare POOL_FULL matches either summary regardless of parens. Superset of #68325's patterns.

Actually pool full (no "s") in #68325 never matched anything — "pools full" isn't a substring match for it. Only pool\(s\) full did real work, and POOL_FULL alone already covers that case too.

Prefer keying off the code over free-form summary text here.

@idryomov

Copy link
Copy Markdown
Contributor

Actually pool full (no "s") in #68325 never matched anything — "pools full" isn't a substring match for it.

This part is true.

Only pool\(s\) full did real work, and POOL_FULL alone already covers that case too.

... but this clearly isn't. https://tracker.ceph.com/issues/75414 (the tracker associated with #68325) shows an instance that isn't covered by POOL_FULL alone:

failure_reason: '"2026-03-05T20:30:00.000077+0000 mon.a (mon.0) 3319 : cluster [WRN]
  Health detail: HEALTH_WARN 2 pool(s) full" in cluster log'

The fact that #68325 was authored by the same person who approved this PR in its current from (i.e. with POOL_FULL alone in the ignorelist) is sad and demonstrates how much of a mess the current grep-based approach is. We have different people coming up with different grep patterns (some of which end up not actually matching anything) to try to cover the variety of free-form strings that all come with a single health check that is triggered by the test on purpose (see #68899 for another recent PR on this). This is a systemic issue, not specific to POOL_FULL.

@idryomov

Copy link
Copy Markdown
Contributor

Happy to broaden this if you'd rather fix the whole class now rather than whack-a-mole it one tracker at a time

I raised this issue a couple of years ago and proposed a solution based on heath check muting. Implementing something along those lines is what I'd consider fixing the whole class. I bet that the number of such whack-a-mole trackers/PRs across all Ceph components is well into the hundreds at this point.

I think we need to rethink the approach to these ignorelists because reliably ignoring a single health check can take 3-4 ignorelist entries to account for the summary and the free-form detail and even then it's not easy to get right due to special characters getting reinterpreted on the way between a yaml snippet and egrep -v filter in teuthology:

  • One idea that comes to mind is adding a small teuthology task that would process a new health-ignorelist stanza and silence health checks with ceph health mute instead of letting everything fire and get logged only to tediously hunt down the possible patterns. This should be 100% reliable and would mimic what we expect users to do in such cases.

  • Another is to have a more regular output -- perhaps the free-form detail could grow a prefix when logged to the cluster log? Also, it would be good to settle on a common way of handling singular vs plural count -- currently it's a mix of X mons (no parenthesis), X pool(s) and some places go all the way to distinguish is and are.

@yuriw

yuriw commented Jul 17, 2026

Copy link
Copy Markdown
Contributor Author

I will defer this to @ljflores and @batrick for decision making

@batrick

batrick commented Jul 23, 2026

Copy link
Copy Markdown
Member

Ilya is not wrong but that effort should be solved with a separate tracker. The main problem is that a single health warning can generate many different messages, often without the health code (e.g. POOL_FULL). That should be addressed.

I don't like a mute approach because in the future some systems will automatically mute warnings during upgrade and then unmute when done. It effectively undermines the test framework's health mutes.

Perhaps a simple solution is a dev config for the monitor with a list of health codes to not log messages for (same as mute but specific for testing).

@yuriw for this PR, please just remove the parenthesis for all of the health warning codes.

Monitor.cc logs a "Health check cleared: <CODE> (was: ...)" line
for any health check clearing mid-test, with the code bare (no
parens) -- while the "Health check failed"/"Health check failed
(unmute)" lines wrap the code in parens. Every \(CODE\) entry in
this file therefore only matches the raise/failed form and misses
the corresponding cleared form, the same gap just fixed for
POOL_FULL.

Drop the escaped parens from the remaining entries so each matches
both log forms, consistent with the bare entries already present
(OSD_ROOT_DOWN, MDS_INSUFFICIENT_STANDBY, POOL_FULL).

Non-code entries (reached quota, overall HEALTH_, slow request,
noscrub, nodeep-scrub, osds down, insufficient standby, etc.) are
unchanged.

Fixes: https://tracker.ceph.com/issues/78149
Signed-off-by: Yuri Weinstein <[email protected]>
@yuriw

yuriw commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Ilya is not wrong but that effort should be solved with a separate tracker. The main problem is that a single health warning can generate many different messages, often without the health code (e.g. POOL_FULL). That should be addressed.

I don't like a mute approach because in the future some systems will automatically mute warnings during upgrade and then unmute when done. It effectively undermines the test framework's health mutes.

Perhaps a simple solution is a dev config for the monitor with a list of health codes to not log messages for (same as mute but specific for testing).

@yuriw for this PR, please just remove the parenthesis for all of the health warning codes.

See added commit
@batrick OK?

@batrick batrick removed their assignment Jul 23, 2026
@yuriw
yuriw merged commit 5f026f2 into main Jul 23, 2026
17 checks passed
@yuriw
yuriw deleted the wip-yuriw-78149-fix-main branch July 23, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants