Repository navigation
qa/tests: fix POOL_FULL ignorelist pattern in upgrade tests - #70120
Conversation
\(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]>
|
This also needs a squid backport once merged — see https://tracker.ceph.com/issues/78149 ( |
idryomov
left a comment
There was a problem hiding this comment.
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?
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. |
|
jenkins test api |
|
@idryomov WDYT? |
Both questions posed in #70120 (review) are still outstanding. |
Good catch — checked clog->info() << "Health check cleared: " << p.first << " (was: "
<< p.second.summary << ")";(with I scoped this PR to Happy to broaden this if you'd rather fix the whole class now rather than @idryomov WDYT? |
|
@idryomov re:
No, they shouldn't be needed. True for both producers — Actually Prefer keying off the code over free-form summary text here. |
This part is true.
... but this clearly isn't. https://tracker.ceph.com/issues/75414 (the tracker associated with #68325) shows an instance that isn't covered by The fact that #68325 was authored by the same person who approved this PR in its current from (i.e. with |
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.
|
|
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 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]>
See added commit |
Contribution Guidelines
What this does
qa/overrides/upgrade_ignorelist_health.yamlignorelists\(POOL_FULL\), whichonly 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: ...)) — seesrc/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. Seediscussion on #69791.
Fixes: https://tracker.ceph.com/issues/78149
Checklist