Skip to content

os/bluestore: add health alert when RocksDB column family sharding is not used - #70623

Merged
ifed01 merged 1 commit into
ceph:mainfrom
FredNass:wip-bluestore-db-sharding-alert
Sep 8, 2026
Merged

ifed01 merged 1 commit into
ceph:mainfrom
FredNass:wip-bluestore-db-sharding-alert

Conversation

@FredNass

@FredNass FredNass commented Jul 28, 2026 •

Copy link
Copy Markdown
Contributor

Add a new BLUESTORE_NO_DB_SHARDING health warning, raised by OSDs whose RocksDB database does not use column family sharding, i.e. OSDs created prior to Pacific that have not been resharded yet. Such OSDs suffer from less efficient caching and compaction and can be migrated to a sharded layout offline with 'ceph-bluestore-tool reshard'.

The alert can be disabled with the new bluestore_warn_on_no_db_sharding option (default: true).

Also fix a latent nullptr dereference in BlueStore::get_db_sharding() when the KV backend is not RocksDB.

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

Assisted-by: Claude Fable 5 High.

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@FredNass
FredNass requested review from a team as code owners July 28, 2026 12:45
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

16 similar comments
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run.

@github-actions

Copy link
Copy Markdown

Config Diff Tool Output

+ added: bluestore_warn_on_no_db_sharding (global.yaml.in)

The above configuration changes are found in the PR. Please update the relevant release documentation if necessary.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

@anthonyeleven

Copy link
Copy Markdown
Contributor

.. prompt:: bash #

systemctl stop ceph-osd@123
ceph-bluestore-tool \

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.

IIRc that utility is only found in the ceph-osd package, so we might want to suggest installing it. However some others -- Eugen perhaps? -- have reported operational issues when the package is installed. If one can do this through a cephadm shell, instructions would be nice.

@FredNass

Copy link
Copy Markdown
Contributor Author

Does this relate to https://tracker.ceph.com/issues/71609 ?

This PR is to display health warning. It relies on the same source of information that was introduced by #66526.

This PR also fixes a latent nullptr bug introduced by #66526 that was discovered by Claude while working on this PR:

In get_db_sharding(), the result of dynamic_cast<RocksDBStore*>(db) is stored in rdb, but it's db that gets null-checked, so a non-RocksDB KV backend would dereference a null pointer.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath5-testing-20260804.033808-main.

@NitzanMordhai

Copy link
Copy Markdown
Contributor

@ifed01

ifed01 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

ok to test

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@SrinivasaBharath

SrinivasaBharath commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

@FredNass Please resolve the failed PR checks. Once the issues are addressed and all required checks pass, you may proceed with merging the PR. If retesting is required, please add the needs-qa label and remove the TESTED label.

… not used

Add a new BLUESTORE_NO_DB_SHARDING health warning, raised by OSDs
whose RocksDB database does not use column family sharding, i.e.
OSDs created prior to Pacific that have not been resharded yet.
Such OSDs suffer from less efficient caching and compaction and can
be migrated to a sharded layout offline with
'ceph-bluestore-tool reshard'.

The alert can be disabled with the new bluestore_warn_on_no_db_sharding
option (default: true).

Also fix a latent nullptr dereference in BlueStore::get_db_sharding()
when the KV backend is not RocksDB.

Signed-off-by: Frédéric Nass <[email protected]>
@FredNass
FredNass force-pushed the wip-bluestore-db-sharding-alert branch from 7db4f01 to 86ccea5 Compare August 25, 2026 13:26
@FredNass

Copy link
Copy Markdown
Contributor Author

Rebased on latest main, no content changes.

/config check ok

@ifed01

ifed01 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

jenkins test api

@ifed01

ifed01 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

jenkins test windows

@ifed01

ifed01 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

jenkins test api

@ifed01
ifed01 merged commit d135f1d into ceph:main Sep 8, 2026
6 of 7 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

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
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/34207432528

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants