Repository navigation
mon: Avoid false stuck peering warning - #65390
Conversation
|
jenkins test make check |
|
I tested this fix with the test that I added to the tracker https://tracker.ceph.com/issues/72462 and we still get stuck peering messages in the monitor log and health check warnings, so I don't think this change is sufficient. I'll spend a bit of time debugging the log files for the test run to see if I can see where the problem is. |
|
@mohit84: ping. |
3c173fc to
cd2595f
Compare
rzarzynski
left a comment
There was a problem hiding this comment.
LGTM but delegating the final decision to EC Folks.
ljflores
left a comment
There was a problem hiding this comment.
Given that this patch should address the is stuck peering warnings that come up in teuthology tests, we should consider removing the suppressions from the suite as part of the fix:
$ git grep "is stuck peering"
qa/cephfs/overrides/pg_health.yaml: - pg .* is stuck peering
qa/suites/upgrade/reef-x/parallel/0-start.yaml: - pg .* is stuck peering
qa/suites/upgrade/reef-x/stress-split/1-start.yaml: - pg .* is stuck peering
qa/suites/upgrade/telemetry-upgrade/reef-x/1-tasks.yaml: - pg .* is stuck peering
qa/suites/upgrade/telemetry-upgrade/squid-x/1-tasks.yaml: - pg .* is stuck peering
The stuck peering warning currently depends on last_peered, however last_peered may be stale when a new primary takes over because only the primary updates this value. It can lead to false stuck peering warning even if the PG has only been peering for a few seconds. Use std::max(last_active, last_peered) when evaluating stuck peering. Updates pg stats during on activation, without this replicas may continue to report stale state. Fixes: https://tracker.ceph.com/issues/72462 Signed-off-by: Mohit Agrawal <[email protected]>
done |
|
jenkins test make check |
|
jenkins test make check arm64 |
|
Hey @mohit84, while analysing: https://tracker.ceph.com/issues/73529, I found a few errors that seem related: Could you please check if the errors are related to this PR please? |
T
The failures are related to this bug https://tracker.ceph.com/issues/73661 not because of this pr. |
rzarzynski
left a comment
There was a problem hiding this comment.
Let's bake the fix in main for awhile before backporting.
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
The stuck peering warning currently depends on last_peered, however last_peered may be stale when a new primary takes over because only the primary updates this value. It can lead to false stuck peering warning even if the PG has only been peering for a few seconds.
Use std::max(last_active, last_peered) when evaluating stuck peering.
Fixes: #https://tracker.ceph.com/issues/72462
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition