Skip to content

crimson/os,tools,qa: fix crimson-objectstore-tool tests - #68474

Merged
ronen-fr merged 5 commits into
ceph:mainfrom
ronen-fr:wip-rf-smallsegs-crimson
May 1, 2026
Merged

ronen-fr merged 5 commits into
ceph:mainfrom
ronen-fr:wip-rf-smallsegs-crimson

Conversation

@ronen-fr

@ronen-fr ronen-fr commented Apr 20, 2026 •

Copy link
Copy Markdown
Contributor

The ceph_objectstore_tool test is hitting space exhaustion on restart
due to segment pressure. In the test scenario, the GC is never given
a chance to run and free up segments.

This change add a new GC operation to Seastore and the
crimson-objectstore-tool, allowing us to trigger GC cycles
on demand. The test is updated to run GC before restarting
the OSDs.

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

@ronen-fr
ronen-fr force-pushed the wip-rf-smallsegs-crimson branch from 6cbbc80 to 81889eb Compare April 21, 2026 09:29
@ronen-fr ronen-fr changed the title Wip rf smallsegs crimson crimson/os,tools,qa: fix crimson-objectstore-tool tests Apr 21, 2026
@ronen-fr

Copy link
Copy Markdown
Contributor Author

This PR replaces #68450

@ronen-fr
ronen-fr requested review from Matan-B and jdurgin April 21, 2026 10:56
@ronen-fr
ronen-fr marked this pull request as ready for review April 21, 2026 10:56
@ronen-fr
ronen-fr requested a review from a team as a code owner April 21, 2026 10:56
@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

Will be used to force immediate GC cycles in Seastore during testing, to
reduce segment pressure and avoid missing-OOL-segments conditions.

Signed-off-by: Ronen Friedman <[email protected]>
This adds a GC operation to the crimson-objectstore-tool, allowing
us to trigger GC cycles on demand during testing. This will
help reduce segment pressure and avoid 'no-segments' conditions.

Signed-off-by: Ronen Friedman <[email protected]>
The objectstore tool tests restart the OSDs without allowing enough
time for GC to run, which can lead to no-OOL-segments conditions on restart. This
adds a gc_before_restart option to the test config, which when set
to true will run crimson-objectstore-tool --op gc on each OSD
before restarting them.

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

Signed-off-by: Ronen Friedman <[email protected]>
used in testing. This translates into more segments, which helps
in preventing test failures due to insufficient free segments for mounting.

Signed-off-by: Ronen Friedman <[email protected]>
@ronen-fr
ronen-fr force-pushed the wip-rf-smallsegs-crimson branch from 81889eb to 1817c0a Compare April 28, 2026 07:56
@ronen-fr
ronen-fr requested review from aainscow and ljflores April 28, 2026 07:57

@jdurgin jdurgin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice and straight-forward!

@ronen-fr

ronen-fr commented May 1, 2026

Copy link
Copy Markdown
Contributor Author

@ronen-fr

ronen-fr commented May 1, 2026

Copy link
Copy Markdown
Contributor Author

Merging based on my Teuthology runs

@ronen-fr
ronen-fr merged commit 8a3b83d into ceph:main May 1, 2026
6 checks passed
@github-actions

github-actions Bot commented May 1, 2026

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 8a3b83d1d859aa038e8565190cadc01d6f9e8e90^..8a3b83d1d859aa038e8565190cadc01d6f9e8e90

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.

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

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.

2 participants