Skip to content

mgr/progress: compare up set instead of acting set - #65131

Merged
NitzanMordhai merged 1 commit into
ceph:mainfrom
kamoltat:wip-ksirivad-fix-72647
Oct 12, 2025
Merged

NitzanMordhai merged 1 commit into
ceph:mainfrom
kamoltat:wip-ksirivad-fix-72647

Conversation

@kamoltat

@kamoltat kamoltat commented Aug 19, 2025 •

Copy link
Copy Markdown
Member

Problem:
The progress module failed to trigger when OSDs were reweighted to 0. We were comparing old vs new acting sets after wrapping them with set(), which discards ordering. As a result, a rotation such as:

old acting = [1,2,3,4]
new acting = [2,3,4,1]

was reduced to the same unordered set {1,2,3,4}, and no change was detected. Additionally, the acting set from OSDMap naturally retains stale OSDs, so stale entries were not discarded.

Solution:
Compare the up set instead, which both preserves ordering and drops stale OSDs. This ensures rotations and membership changes are correctly detected. Also removed set() usage in _osd_in_out() and tightened logging to reduce noise.

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

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@kamoltat kamoltat added the mgr label Aug 19, 2025
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-72647 branch from 381a933 to d395f3a Compare August 19, 2025 18:07
Problem:
The progress module failed to trigger when OSDs were reweighted
to 0. We were comparing old vs new acting sets after wrapping
them with set(), which discards ordering. As a result, a rotation
such as:

  old acting = [1,2,3,4]
  new acting = [2,3,4,1]

was reduced to the same unordered set {1,2,3,4}, and no change
was detected. Additionally, the acting set from OSDMap naturally
retains stale OSDs, so stale entries were not discarded.

Solution:
Compare the up set instead, which both preserves ordering and
drops stale OSDs. This ensures rotations and membership changes
are correctly detected. Also removed set() usage in
_osd_in_out() and tightened logging to reduce noise.

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

Signed-off-by: Kamoltat Sirivadhna <[email protected]>
@kamoltat
kamoltat force-pushed the wip-ksirivad-fix-72647 branch from d395f3a to d13d739 Compare August 19, 2025 19:09
@kamoltat kamoltat self-assigned this Aug 19, 2025
@kamoltat
kamoltat requested a review from a team August 19, 2025 19:15
@kamoltat kamoltat added needs-review needs-squid-backport PR needs a squid backport needs-tentacle-backport PRs that need tentacle back-port labels Aug 19, 2025
@kamoltat

Copy link
Copy Markdown
Member Author

jenkins test make check arm64

@ronen-fr

Copy link
Copy Markdown
Contributor

LGTM

@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

core mgr needs-qa needs-squid-backport PR needs a squid backport needs-tentacle-backport PRs that need tentacle back-port pybind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants