Skip to content

tentacle: osd: Fix bug when calculating min_peer_features - #69159

Merged
batrick merged 1 commit into
ceph:tentaclefrom
bill-scales:wip-76987-tentacle
Jun 8, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
bill-scales:wip-76987-tentacle

Conversation

@bill-scales

@bill-scales bill-scales commented May 29, 2026 •

Copy link
Copy Markdown
Contributor

PeeringState calculates the minimum set of features for the set of OSDs within a PG. There is a bug when the peer info has already been cached where these peers features are not included in the calculation. This can lead to the min feature set including features that not all OSDs have.

Previously this just made some asserts less aggressive than they should have been. Pull request #57740 uses min_peer_features to decide how to encode messages to other OSDs.

Midway through an upgrade this bug can cause an OSD to send the wrong version of a message to a downlevel OSD causing it to abort.


backport tracker: https://tracker.ceph.com/issues/76987


backport of #68936
parent tracker: https://tracker.ceph.com/issues/76600

this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh

PeeringState calculates the minimum set of features for the set
of OSDs within a PG. There is a bug when the peer info has
already been cached where these peers features are not included
in the calculation. This can lead to the min feature set
including features that not all OSDs have.

Previously this just made some asserts less aggressive than they
should have been. Pull request ceph#57740
uses min_peer_features to decide how to encode messages to other OSDs.

Midway through an upgrade this bug can cause an OSD to send
the wrong version of a message to a downlevel OSD causing
it to abort.

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

Signed-off-by: Bill Scales <[email protected]>
(cherry picked from commit ce58827)
@bill-scales
bill-scales requested a review from a team as a code owner May 29, 2026 08:27
@bill-scales bill-scales added this to the tentacle milestone May 29, 2026
@github-actions github-actions Bot added the core label May 29, 2026
@bill-scales bill-scales changed the title tentacle: null tentacle: qa/suites/upgrade: `cluster [WRN] daemon osd.5 on trial179 is in unknown state" in cluster log' May 29, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label May 29, 2026
@bill-scales bill-scales changed the title tentacle: qa/suites/upgrade: `cluster [WRN] daemon osd.5 on trial179 is in unknown state" in cluster log' tentacle: osd: Fix bug when calculating min_peer_features May 29, 2026
@batrick

batrick commented Jun 2, 2026

Copy link
Copy Markdown
Member

I will try to get this into v20.2.2 in the batch of my other v20.2.2 fixes.

@batrick batrick modified the milestones: v20.2.3, v20.2.2 Jun 2, 2026
@batrick

batrick commented Jun 2, 2026

Copy link
Copy Markdown
Member

@batrick

batrick commented Jun 5, 2026 •

Copy link
Copy Markdown
Member

@rkachach good to merge?

wrong PR

@batrick

batrick commented Jun 5, 2026

Copy link
Copy Markdown
Member

This PR has been added to tentacle integration testing by pdonnell started 2026-06-02-20:20.

@bill-scales please review rados run.

@batrick

batrick commented Jun 5, 2026

Copy link
Copy Markdown
Member

@batrick
batrick merged commit 82c167d into ceph:tentacle Jun 8, 2026
19 checks passed
@NitzanMordhai

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants