Repository navigation
mgr/cephadm: OSD upgrades when CRUSH bucket type is specified - #72920
Conversation
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
81b22ca to
5c23a99
Compare
|
jenkins test make check |
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved bucket-iteration and cluster-wide finalization defects can stall upgrades or prevent scoped runs from completing.
3 open issues
What changed in this PR
Extends cephadm’s bucket-scoped OSD upgrades to process all CRUSH buckets of a selected type automatically, rather than requiring a separate upgrade command for each bucket.
Changes:
- Discovers and persists an ordered bucket queue, allowing upgrades to resume after Manager failover.
- Adds bucket advancement, progress reporting, completion handling, and redeployment-limit enforcement.
- Adds unit tests and documents type-only upgrades.
| File | Description |
|---|---|
| src/pybind/mgr/cephadm/upgrade.py | Implements bucket iteration, persistent progress, and upgrade-limit handling. |
| src/pybind/mgr/cephadm/tests/test_upgrade.py | Tests validation, queue persistence, advancement, status, and limits. |
| doc/cephadm/upgrade.rst | Documents automatic bucket iteration and topology constraints. |
Review effort: Balanced
adk3798
left a comment
There was a problem hiding this comment.
Everything seems like it should work here. We should really get a teuthology test for both the auto-iterate and by individual name crush bucket upgrade cases. I think it's really hard to tell from unit tests and the code itself if this is working or not (or if some other change later change breaks it)
|
jenkins test make check arm64 |
|
jenkins test make check arm64 |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
9de6268 to
cfcbe9c
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This PR is ready to merge after the UT rebase |
This code iterates thorugh all CRUSH buckets for a specified bucket type, and upgrades OSD daemons bucket wise. Fixes: https://tracker.ceph.com/issues/81961 Signed-off-by: Ashwin M. Joshi <[email protected]>
Handles comments for:
— Duplicate bucket names break auto-iterate
— Empty CRUSH bucket permanently pauses the upgrade
— Cluster-wide completion check was actually bucket-scoped
Fixes: https://tracker.ceph.com/issues/81961
Signed-off-by: Ashwin M. Joshi <[email protected]>
Conflicts:
src/pybind/mgr/cephadm/tests/test_upgrade.py
cfcbe9c to
22bf57b
Compare
|
jenkins test make check arm64 |
1 similar comment
|
jenkins test make check arm64 |
|
Teuthology run was successful. Failing Test cases are not related to this PR: |
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |


This code iterates thorugh all CRUSH buckets for a specified bucket type, and upgrades OSD daemons bucket wise.
Fixes: https://tracker.ceph.com/issues/81961
Test Logs:
1. Bucket-type wise upgrade with limit=2
2. Bucket-type wise upgrade with mgr failover (doesn’t start from first bucket all over again)
Mgr failover takes over from the next ones: (R2 OSDs)
4. Starting with regular ok-to-stop upgrades to make sure it works
5. Checking bucket type+name working as before:
6. Checking all buckets in a type in one go:
7. Invalid bucket name caught
8. Duplicate bucket entries don't ping-pong:
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 DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.