Skip to content

crimson/os/seastore/segment_manager: Check segments prior to mkfs - #64771

Merged
Matan-B merged 17 commits into
ceph:mainfrom
Matan-B:wip-matanb-crimson-seastore-coro
Sep 16, 2025
Merged

Matan-B merged 17 commits into
ceph:mainfrom
Matan-B:wip-matanb-crimson-seastore-coro

Conversation

@Matan-B

@Matan-B Matan-B commented Jul 31, 2025 •

Copy link
Copy Markdown
Contributor
  • Switch SeaStore..h/cc to coroutines until mkfs
  • add a verification to the segment count prior to mkfs

Based on #65215 for testing purposes (will rebase once merged)

Blocked by: #64812

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

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

@Matan-B
Matan-B force-pushed the wip-matanb-crimson-seastore-coro branch 2 times, most recently from 30c404c to 7f21d59 Compare July 31, 2025 14:10
@Matan-B Matan-B added this to Crimson Jul 31, 2025
@Matan-B Matan-B moved this to In Progress in Crimson Jul 31, 2025
Matan-B added a commit to Matan-B/ceph that referenced this pull request Aug 4, 2025
taken out of ceph#64771.
Still dnm, possibly might help up cleaning up some of repeat_eagain
internal methods.

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-seastore-coro branch from 7f21d59 to 72a21b7 Compare August 4, 2025 12:03
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-seastore-coro branch 2 times, most recently from 8bbb096 to 4f22368 Compare August 4, 2025 15:53
@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

@Matan-B
Matan-B force-pushed the wip-matanb-crimson-seastore-coro branch from 4f22368 to e732a80 Compare August 10, 2025 12:34
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-seastore-coro branch from e732a80 to 77fec64 Compare August 12, 2025 11:40
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-seastore-coro branch 2 times, most recently from 12d9c6a to e822beb Compare September 3, 2025 11:51
The virtual FuturizedStore::mount() returns
crimson::os::FuturizedStore::mount_ertr which is stateful_ec.
Seastore's mount expectes a more complex ertr - access_ertr.
In order to not handle each of seastore's errors and support
the existing interface - convert the error into a stateful_ec.

Signed-off-by: Matan Breizman <[email protected]>
Switch to errorator to not handle each error.
Let the caller handle error instead.

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-seastore-coro branch from e822beb to 1485b1e Compare September 4, 2025 12:39
@github-actions github-actions Bot added the common label Sep 4, 2025
@Matan-B
Matan-B requested a review from a team as a code owner September 4, 2025 12:46
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-seastore-coro branch 2 times, most recently from 0906300 to e528dcf Compare September 4, 2025 14:24
@Matan-B

Matan-B commented Sep 4, 2025

Copy link
Copy Markdown
Contributor Author

/config check ok

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

LGTM other than nits. I'm fine with merging this as a unit, reviewed the coroutine conversions as well.

Comment thread src/crimson/os/seastore/seastore.cc Resolved
Comment thread src/crimson/os/seastore/seastore.cc Resolved
Comment thread src/crimson/os/seastore/seastore.cc Resolved
@athanatos athanatos added the wip-sjust-crimson-testing Test run pending by Sam label Sep 4, 2025
@athanatos

Copy link
Copy Markdown
Contributor

scheduled test (rerunning with just this PR)

@athanatos

Copy link
Copy Markdown
Contributor

jenkins test api

@Matan-B Matan-B moved this from Awaits review to Tested in Crimson Sep 15, 2025
In read_meta we should not use ERROR when the key is not found
as this is expected.
Same in _mkfs, if mkfs_done exists we shouldn't use ERROR.
This can be confusing when debugging is disabled and few ERROR log
lines are printed.

Signed-off-by: Matan Breizman <[email protected]>
See ExtentPlacementManager::init

dynamic_max_rewrite_generation = hot_tier_generations - 1;
ceph_assert(dynamic_max_rewrite_generation > MIN_REWRITE_GENERATION);

Signed-off-by: Matan Breizman <[email protected]>
Verify Segment count for prior to mkfs
* ExtentPlacementManager::init - dynamic_max_rewrite_generation segments
* SegmentedJournal segment (1)

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

Signed-off-by: Matan Breizman <[email protected]>
@Matan-B
Matan-B force-pushed the wip-matanb-crimson-seastore-coro branch from e528dcf to 3b96326 Compare September 15, 2025 12:40
@Matan-B

Matan-B commented Sep 15, 2025

Copy link
Copy Markdown
Contributor Author

jenkins retest this please

@Matan-B

Matan-B commented Sep 16, 2025

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@Matan-B
Matan-B merged commit ce35632 into ceph:main Sep 16, 2025
@Matan-B Matan-B moved this from Tested to Merged (Main) in Crimson Sep 16, 2025
@github-actions

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/17763495348

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

Projects

Status: Merged (Pre Umbrella cutoff)

Development

Successfully merging this pull request may close these issues.

2 participants