Skip to content

umbrella: mgr/DaemonServer: Make an ok-to-upgrade error message more generic - #70390

Merged
batrick merged 1 commit into
ceph:umbrellafrom
sseshasa:wip-78486-umbrella
Jul 30, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
sseshasa:wip-78486-umbrella

Conversation

@sseshasa

Copy link
Copy Markdown
Contributor

When no OSDs within a CRUSH bucket can be found to upgrade, the earlier error
message indicated the minimum number of PGs affected if any OSD was removed
from the set. For e.g.,

"Error EBUSY: unsafe to upgrade osd(s) at this time (at least X PG(s) will
become offline if any OSD out of the Y in CRUSH bucket 'foo' is stopped)"

This was inaccurate in some cases because the number of PGs affected is
determined only from the last tested OSD in the CRUSH bucket based on the sort
order (i.e., OSD with least number of PGs per OSD). Based on the CRUSH rules
and placement, this doesn't mean that the least number of PGs are affected if
this OSD is stopped. There may be other OSDs in the set that affect a smaller
number of PGs if made offline.

But with the way ok-to-upgrade logic uses the convergence factor, not all OSDs
would be tested for the offline pg check. Therefore, it is not possible to
accurately determine the minimum number affected PGs.

In view of the above, the error message is modified as shown below to be
slightly more generic but still convey the reason:

"Error EBUSY: unsafe to upgrade osd(s) at this time (one or more PG(s) will
become offline if any OSD out of the Y in CRUSH bucket 'foo' is stopped)"

Fixes: https://tracker.ceph.com/issues/78425
Signed-off-by: Sridhar Seshasayee <[email protected]>
(cherry picked from commit afd0b92)
@sseshasa
sseshasa requested a review from a team as a code owner July 21, 2026 15:24
@sseshasa sseshasa added this to the umbrella milestone Jul 21, 2026
@sseshasa sseshasa added the core label Jul 21, 2026
@github-actions github-actions Bot added mgr releng-audit-pass Release engineering: passed backport verification audit. labels Jul 21, 2026
@sseshasa
sseshasa requested review from NitzanMordhai and removed request for a team July 21, 2026 15:30

@NitzanMordhai NitzanMordhai 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.

lgtm

@sseshasa

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@sseshasa sseshasa modified the milestones: umbrella, v21.1.1 Jul 22, 2026
@sseshasa

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@yuriw

yuriw commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri15-testing-20260723.210930-umbrella.

@batrick

batrick commented Jul 30, 2026

Copy link
Copy Markdown
Member

jenkins test make check arm64

@batrick
batrick merged commit b476e7a into ceph:umbrella Jul 30, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core mgr needs-qa releng-audit-pass Release engineering: passed backport verification audit. wip-yuri15-testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants