Skip to content

squid: os/bluestore: do not add expanded space to allocator after allocmap recovery - #70382

Merged
batrick merged 4 commits into
ceph:squidfrom
ifed01:wip-ifed-fix-ncb-expand-squi
Oct 20, 2026
Merged

batrick merged 4 commits into
ceph:squidfrom
ifed01:wip-ifed-fix-ncb-expand-squi

Conversation

@ifed01

@ifed01 ifed01 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Parent tracker: https://tracker.ceph.com/issues/75852
Backport tracker: https://tracker.ceph.com/issues/78218
Backports: #68503

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.

@ifed01
ifed01 requested a review from a team as a code owner July 21, 2026 11:34
@ifed01
ifed01 requested a review from aclamk July 21, 2026 11:34
@github-actions github-actions Bot added this to the squid milestone Jul 21, 2026
@github-actions

github-actions Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

Config Diff Tool Output

! changed: bluestore_debug_enforce_settings: old: 'hdd' enforces settings intended for BlueStore above a rotational drive. 'ssd' enforces settings intended for BlueStore above a solid drive. 'default' - using settings for the actual 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)
! changed: bluestore_debug_enforce_settings: old: Enforces specific hw profile settings (global.yaml.in)
! changed: bluestore_debug_enforce_settings: new: Enforces specific hardware profile settings (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.

github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 21, 2026
@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Jul 27, 2026
@github-actions github-actions Bot removed releng-audit-queue Release engineering: queued for backport verification audit. releng-audit-fail Release engineering: failed backport verification audit. labels Jul 27, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #70382 SOURCE PR SOURCE STATUS
d967a7c os/bluestore: make 'bluestore_debug_enforce_settings' control PR #68503 4b74d0a os/bluestore: make 'bluestore_debug_enforce_settings' control
98721cf os/bluestore: do not add expanded space to allocator after allocmap d6e021d os/bluestore: do not add expanded space to allocator after allocmap
16e8fc8 qa/osd-bluefs-volume-ops: add more bluestore expansion test cases. f88927d qa/osd-bluefs-volume-ops: add more bluestore expansion test cases.
77e60f7 test/osd-bluefs-volume-ops: minor cleanup 641038f test/osd-bluefs-volume-ops: minor cleanup

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport d967a7c (cherry-pick of 4b74d0a)

Affected File(s)

Range Diff

Click to expand
--- Original (4b74d0af)
+++ Backport (d967a7c0)
@@ -9,3 +9,11 @@
 actual device class completely.
 
 Signed-off-by: Igor Fedotov <[email protected]>
+(cherry picked from commit 4b74d0af8fb968d3cd0a777da78e88288ea60b41)
+
+ Conflicts:
+  src/common/options/global.yaml.in
+   Trivial - the previous description for bluestore_debug_enforce_settings
+   got no relevant update in Squid.
+  src/test/objectstore/store_test.cc
+   Trivial - conflicts cause by no write v2 support.

================================================================================
RANGE DIFF
================================================================================

1:  4b74d0af8fb ! 1:  d967a7c0743 os/bluestore: make 'bluestore_debug_enforce_settings' control rotational/non-rotational OSD behavior for DB/WAL devices.
    @@ Commit message
         actual device class completely.
     
         Signed-off-by: Igor Fedotov <[email protected]>
    +    (cherry picked from commit 4b74d0af8fb968d3cd0a777da78e88288ea60b41)
    +
    +     Conflicts:
    +      src/common/options/global.yaml.in
    +       Trivial - the previous description for bluestore_debug_enforce_settings
    +       got no relevant update in Squid.
    +      src/test/objectstore/store_test.cc
    +       Trivial - conflicts cause by no write v2 support.
     
      ## src/common/options/global.yaml.in ##
     @@ src/common/options/global.yaml.in: options:
    + - name: bluestore_debug_enforce_settings
        type: str
        level: dev
    -   desc: Enforces specific hardware profile settings
    --  long_desc: '''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.'
    +-  desc: Enforces specific hw profile settings
    +-  long_desc: '''hdd'' enforces settings intended for BlueStore above a rotational
    +-    drive. ''ssd'' enforces settings intended for BlueStore above a solid drive. ''default''
    +-    - using settings for the actual hardware.'
    ++  desc: Enforces specific hardware profile settings
     +  long_desc: '''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.
    @@ src/os/bluestore/BlueStore.h: private:
     
      ## src/test/objectstore/store_test.cc ##
     @@ src/test/objectstore/store_test.cc: TEST_P(StoreTestSpecificAUSize, ReproBug41901Test) {
    +     return;
      
    -   SetVal(g_conf(), "bluestore_write_v2", "false");
        SetVal(g_conf(), "bluestore_max_blob_size", "524288");
     -  SetVal(g_conf(), "bluestore_debug_enforce_settings", "hdd");
     +  SetVal(g_conf(), "bluestore_debug_enforce_settings", "hybrid");
    @@ src/test/objectstore/store_test.cc: TEST_P(StoreTestSpecificAUSize, ReproBug4190
        StartDeferred(65536);
      
     @@ src/test/objectstore/store_test.cc: TEST_P(StoreTestSpecificAUSize, ReproBug56488Test) {
    + 
        size_t alloc_size = 65536;
        size_t write_size = 4096;
    -   SetVal(g_conf(), "bluestore_write_v2", "false");
     -  SetVal(g_conf(), "bluestore_debug_enforce_settings", "hdd");
     +  SetVal(g_conf(), "bluestore_debug_enforce_settings", "hybrid");
        SetVal(g_conf(), "bluestore_block_db_create", "true");
        SetVal(g_conf(), "bluestore_block_db_size", stringify(1 << 30).c_str());
      
     @@ src/test/objectstore/store_test.cc: TEST_P(StoreTestSpecificAUSize, BluestoreEnforceHWSettingsHdd) {
    +   if (string(GetParam()) != "bluestore")
          return;
      
    -   SetVal(g_conf(), "bluestore_write_v2", "false");
     -  SetVal(g_conf(), "bluestore_debug_enforce_settings", "hdd");
     +  SetVal(g_conf(), "bluestore_debug_enforce_settings", "hybrid");
        StartDeferred(0x1000);

Deviation in Backport 16e8fc8 (cherry-pick of f88927d)

Affected File(s)

Range Diff

Click to expand
--- Original (f88927d2)
+++ Backport (16e8fc8e)
@@ -2,3 +2,9 @@
 
 Reproduces: https://tracker.ceph.com/issues/75852
 Signed-off-by: Igor Fedotov <[email protected]>
+(cherry picked from commit f88927d283b08df6f1a13c547ef693ab074a6e59)
+
+ Conflicts:
+   qa/standalone/osd/osd-bluefs-volume-ops.sh
+     Trivial - online BlueFS expanding functionality isn't present in Squid
+     hence suggesting to backport a relevant test case too.

================================================================================
RANGE DIFF
================================================================================

1:  f88927d283b ! 1:  16e8fc8e354 qa/osd-bluefs-volume-ops: add more bluestore expansion test cases.
    @@ Commit message
     
         Reproduces: https://tracker.ceph.com/issues/75852
         Signed-off-by: Igor Fedotov <[email protected]>
    +    (cherry picked from commit f88927d283b08df6f1a13c547ef693ab074a6e59)
    +
    +     Conflicts:
    +       qa/standalone/osd/osd-bluefs-volume-ops.sh
    +         Trivial - online BlueFS expanding functionality isn't present in Squid
    +         hence suggesting to backport a relevant test case too.
     
      ## qa/standalone/osd/osd-bluefs-volume-ops.sh ##
     @@ qa/standalone/osd/osd-bluefs-volume-ops.sh: function TEST_bluestore() {
    @@ qa/standalone/osd/osd-bluefs-volume-ops.sh: function TEST_bluestore_expand() {
     +    return 0
      }
      
    - function TEST_bluestore_expand_online() {
    -     local dir=$1
    - 
    --    local flimit=$(ulimit -n)
    --    if [ $flimit -lt 1536 ]; then
    --        echo "Low open file limit ($flimit), test may fail. Increase to 1536 or higher and retry if that happens."
    --    fi
    -     export CEPH_MON="127.0.0.1:7146" # git grep '\<7146\>' : there must be only one
    -     export CEPH_ARGS
    -     CEPH_ARGS+="--fsid=$(uuidgen) --auth-supported=none "
    -@@ qa/standalone/osd/osd-bluefs-volume-ops.sh: function TEST_bluestore_expand_online() {
    -     ceph-bluestore-tool --path $dir/1 fsck || return 1
    -     ceph-bluestore-tool --path $dir/2 fsck || return 1
    -     ceph-bluestore-tool --path $dir/3 fsck || return 1
    --
    - }
    - 
     +function TEST_bluestore_expand_with_allocmap_recovery() {
     +    local dir=$1
     +

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 27, 2026
@aclamk

aclamk commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath11-testing-20260908.043338-squid.

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]>
(cherry picked from commit 4b74d0a)

 Conflicts:
  src/common/options/global.yaml.in
   Trivial - the previous description for bluestore_debug_enforce_settings
   got no relevant update in Squid.
  src/test/objectstore/store_test.cc
   Trivial - conflicts cause by no write v2 support.
recovery.

The recovery procedure performs that itself by design.
Fixes: https://tracker.ceph.com/issues/75852

Signed-off-by: Igor Fedotov <[email protected]>
(cherry picked from commit d6e021d)
Reproduces: https://tracker.ceph.com/issues/75852
Signed-off-by: Igor Fedotov <[email protected]>
(cherry picked from commit f88927d)

 Conflicts:
   qa/standalone/osd/osd-bluefs-volume-ops.sh
     Trivial - online BlueFS expanding functionality isn't present in Squid
     hence suggesting to backport a relevant test case too.
Signed-off-by: Igor Fedotov <[email protected]>
(cherry picked from commit 641038f)
@ifed01
ifed01 force-pushed the wip-ifed-fix-ncb-expand-squi branch from 77e60f7 to 78f4ecc Compare September 23, 2026 12:10
@ljflores

ljflores commented Oct 8, 2026

Copy link
Copy Markdown
Member

@ifed01 was your most recent force push trivial? I approved the QA results based on the old commit:
https://tracker.ceph.com/projects/rados/wiki/SQUID#httpstrackercephcomissues80346

If it was trivial, you can consider it approved. Otherwise, let's retest.

@ljflores

ljflores commented Oct 8, 2026

Copy link
Copy Markdown
Member

Also, the audit either needs to be overriden or fixed.

@ifed01

ifed01 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

@ifed01 was your most recent force push trivial? I approved the QA results based on the old commit: https://tracker.ceph.com/projects/rados/wiki/SQUID#httpstrackercephcomissues80346

If it was trivial, you can consider it approved. Otherwise, let's retest.

Yes, this was basically rebase on top of up-to-date squid branch. Plus adjusting auth args in qa/standalone/osd/osd-bluefs-volume-ops.sh to match new approach.

@batrick batrick modified the milestones: squid, v19.2.8 Oct 20, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Oct 20, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @batrick.

View workflow run

@batrick
batrick merged commit 9e0c6fd into ceph:squid Oct 20, 2026
19 of 20 checks passed
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