Skip to content

os/bluestore: make 'bluestore_debug_enforce_settings' control - #69173

Closed
ifed01 wants to merge 1 commit into
ceph:mainfrom
ifed01:wip-ifed-enforce-settings
Closed

ifed01 wants to merge 1 commit into
ceph:mainfrom
ifed01:wip-ifed-enforce-settings

Conversation

@ifed01

@ifed01 ifed01 commented May 29, 2026

Copy link
Copy Markdown
Contributor

rotational/non-rotational OSD behavior for DB/WAL devices.

Prior to this commit this parameter determined what device class settings to apply for BlueStore only. OSD had partially applied actual journal/db/main device class for some operations, e.g. benchmark on init or allocmap persistence, irrespective to this setting value. This commit allows 'bluestore_debug_enforce_settings" to override the actual device class completely.

This originally came within #68503 but making a standalone PR out of it.

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.

@github-actions

github-actions Bot commented May 29, 2026 •

Copy link
Copy Markdown

Config Diff Tool Output

! changed: bluestore_debug_enforce_settings: old: 'hdd' enforces settings intended for BlueStore on a rotational drive. 'ssd' enforces settings intended for BlueStore on an SSD. 'default' indicates that BlueStore is to use settings based on the detected hardware. (global.yaml.in)
! changed: bluestore_debug_enforce_settings: new: 'hybrid' enforces osd settings applicable to hybrid (AKA main=hdd, db/wal=ssd) disk setup. 'ssd' enforces osd settings applicable to all-flash disk setup. 'default' specifies automatic settings selection based on real detected hardware. (global.yaml.in)
! changed: bluestore_debug_enforce_settings: old: ['default', 'hdd', 'ssd'] (global.yaml.in)
! changed: bluestore_debug_enforce_settings: new: ['default', 'hybrid', 'ssd'] (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.

Comment thread src/os/bluestore/BlueStore.cc Resolved

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

Minor nits.

@Jayaprakash-ibm

Copy link
Copy Markdown
Contributor

I see a failure in teuthology run, might be related to this PR
https://pulpito-ng.ceph.com/runs/jayaprakash-2026-06-19_10:43:50-rados-wip-jaya-bs-testing-18-06-2026-distro-default-trial/jobs/300630

2026-06-19T13:15:48.321 INFO:teuthology.orchestra.run.trial147.stderr:set_val_or_die(bluestore_debug_enforce_settings): 'hdd' is not one of the permitted values: default, hybrid, ssd/ceph/rpmbuild/BUILD/ceph-21.3.0-271-g7c3ff705/src/common/config.cc: In function 'void md_config_t::set_val_or_die(ConfigValues&, const ConfigTracker&, std::string_view, const std::string&)' thread 7f6a79c29d80 time 2026-06-19T13:15:48.320065+0000
2026-06-19T13:15:48.321 INFO:teuthology.orchestra.run.trial147.stderr:/ceph/rpmbuild/BUILD/ceph-21.3.0-271-g7c3ff705/src/common/config.cc: 916: FAILED ceph_assert(ret == 0)
2026-06-19T13:15:48.321 INFO:teuthology.orchestra.run.trial147.stderr: ceph version 21.3.0-271-g7c3ff705 (7c3ff705e9fdf84f853b46ba273e5c38f8d2cf73) umbrella (dev - RelWithDebInfo)
2026-06-19T13:15:48.321 INFO:teuthology.orchestra.run.trial147.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x12f) [0x7f6a78f8bb39]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 2: /usr/lib64/ceph/libceph-common.so.2(+0x195aaf) [0x7f6a78f95aaf]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 3: (StoreTestFixture::SetVal(ceph::common::ConfigProxy&, char const*, char const*)+0x19b) [0x7d6b7b]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 4: (StoreTestSpecificAUSize_OverwriteDeferredTest_Test::TestBody()+0x1cb) [0x75c82b]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 5: (testing::Test::Run()+0xe3) [0x990c83]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 6: (testing::TestInfo::Run()+0x41d) [0x99113d]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 7: ceph_test_objectstore() [0x9af823]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 8: (testing::internal::UnitTestImpl::RunAllTests()+0x58f) [0x9a323f]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 9: (testing::UnitTest::Run()+0x8a) [0x9a0e7a]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 10: main()
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 11: /lib64/libc.so.6(+0x2a610) [0x7f6a7842a610]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 12: __libc_start_main()
2026-06-19T13:15:48.323 INFO:teuthology.orchestra.run.trial147.stderr: 13: _start()

rotational/non-rotational OSD behavior for DB/WAL devices.

Prior to this commit this parameter determined what device class
settings to apply for BlueStore only. OSD had partially applied
actual journal/db/main device class for some operations, e.g. benchmark
on init or allocmap persistence, irrespective to this setting value.
This commit allows 'bluestore_debug_enforce_settings" to override the
actual device class completely.

Signed-off-by: Igor Fedotov <[email protected]>
@ifed01

ifed01 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor Author

I see a failure in teuthology run, might be related to this PR https://pulpito-ng.ceph.com/runs/jayaprakash-2026-06-19_10:43:50-rados-wip-jaya-bs-testing-18-06-2026-distro-default-trial/jobs/300630

2026-06-19T13:15:48.321 INFO:teuthology.orchestra.run.trial147.stderr:set_val_or_die(bluestore_debug_enforce_settings): 'hdd' is not one of the permitted values: default, hybrid, ssd/ceph/rpmbuild/BUILD/ceph-21.3.0-271-g7c3ff705/src/common/config.cc: In function 'void md_config_t::set_val_or_die(ConfigValues&, const ConfigTracker&, std::string_view, const std::string&)' thread 7f6a79c29d80 time 2026-06-19T13:15:48.320065+0000
2026-06-19T13:15:48.321 INFO:teuthology.orchestra.run.trial147.stderr:/ceph/rpmbuild/BUILD/ceph-21.3.0-271-g7c3ff705/src/common/config.cc: 916: FAILED ceph_assert(ret == 0)
2026-06-19T13:15:48.321 INFO:teuthology.orchestra.run.trial147.stderr: ceph version 21.3.0-271-g7c3ff705 (7c3ff705e9fdf84f853b46ba273e5c38f8d2cf73) umbrella (dev - RelWithDebInfo)
2026-06-19T13:15:48.321 INFO:teuthology.orchestra.run.trial147.stderr: 1: (ceph::__ceph_assert_fail(char const*, char const*, int, char const*)+0x12f) [0x7f6a78f8bb39]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 2: /usr/lib64/ceph/libceph-common.so.2(+0x195aaf) [0x7f6a78f95aaf]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 3: (StoreTestFixture::SetVal(ceph::common::ConfigProxy&, char const*, char const*)+0x19b) [0x7d6b7b]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 4: (StoreTestSpecificAUSize_OverwriteDeferredTest_Test::TestBody()+0x1cb) [0x75c82b]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 5: (testing::Test::Run()+0xe3) [0x990c83]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 6: (testing::TestInfo::Run()+0x41d) [0x99113d]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 7: ceph_test_objectstore() [0x9af823]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 8: (testing::internal::UnitTestImpl::RunAllTests()+0x58f) [0x9a323f]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 9: (testing::UnitTest::Run()+0x8a) [0x9a0e7a]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 10: main()
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 11: /lib64/libc.so.6(+0x2a610) [0x7f6a7842a610]
2026-06-19T13:15:48.322 INFO:teuthology.orchestra.run.trial147.stderr: 12: __libc_start_main()
2026-06-19T13:15:48.323 INFO:teuthology.orchestra.run.trial147.stderr: 13: _start()

Given the failed test case name: "ObjectStore/StoreTestSpecificAUSize.OverwriteDeferredTest/1" I think this batch included #68783, right?
The latter has to be fixed as it refers to the legacy parameter value. So please do not test #68783 and #69173 togather.

@ifed01

ifed01 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

Merged as a part of #68503

@ifed01
ifed01 deleted the wip-ifed-enforce-settings branch July 14, 2026 13:24
@lee-j-sanders

Copy link
Copy Markdown
Member

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.

5 participants