Skip to content

crimson/osd: always ask for the newest osdmap - #65726

Merged
Matan-B merged 1 commit into
ceph:mainfrom
xxhdx1985126:wip-73317
Nov 13, 2025
Merged

Matan-B merged 1 commit into
ceph:mainfrom
xxhdx1985126:wip-73317

Conversation

@xxhdx1985126

Copy link
Copy Markdown
Member

Fixes: https://tracker.ceph.com/issues/73317
Signed-off-by: Xuehan Xu [email protected]

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.

@xxhdx1985126
xxhdx1985126 requested a review from a team as a code owner September 30, 2025 03:00
@Matan-B Matan-B added this to Crimson Sep 30, 2025
@Matan-B Matan-B moved this to Awaits review in Crimson Sep 30, 2025
Comment thread src/crimson/osd/osd.cc
* Only subscribe to the next map until implemented.
* See https://tracker.ceph.com/issues/66832
*/
co_await get_shard_services().osdmap_subscribe(osdmap->get_epoch() + 1, false);

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.

This should work, I've sanitized the logs below:

INFO  2025-09-18 14:39:29,149 [shard 0:main] osd - OSD::_preboot: osd.1
DEBUG 2025-09-18 14:39:29,201 [shard 0:main] osd - OSD::_handle_osd_map: submitting transaction
INFO  2025-09-18 14:42:08,839 [shard 0:main] osd - OSD::_preboot: osd.1
INFO  2025-09-18 14:42:08,841 [shard 0:main] osd - OSD::committed_osd_maps: osd.1: now booting
DEBUG 2025-09-18 14:42:09,204 [shard 0:main] osd - OSD::_handle_osd_map: submitting transaction
INFO  2025-09-18 14:42:10,287 [shard 0:main] osd - OSD::committed_osd_maps: osd.1: now booting
DEBUG 2025-09-18 14:42:12,078 [shard 0:main] osd - OSD::_handle_osd_map: submitting transaction
INFO  2025-09-18 14:42:15,967 [shard 0:main] osd - OSD::committed_osd_maps: osd.1: now booting
DEBUG 2025-09-18 14:42:16,012 [shard 0:main] osd - OSD::_handle_osd_map: submitting transaction
INFO  2025-09-18 14:42:17,452 [shard 0:main] osd - OSD::committed_osd_maps: osd.1: now booting

We already have this subscription in OSD::_preboot, I'm still trying to understand why wasn't this enough?

  if (osdmap->get_epoch() + 1 >= oldest) {
    return get_shard_services().osdmap_subscribe(osdmap->get_epoch() + 1, false);
  } else {
    return get_shard_services().osdmap_subscribe(oldest - 1, true);
  }

Ah, we miss start_waiting_for_healthy() that would essentially be responsible for this. I'll prioritize the tracker, let's merge as is for now.

@Matan-B Matan-B moved this from Awaits review to Needs QA in Crimson Sep 30, 2025
@perezjosibm

perezjosibm commented Sep 30, 2025 •

Copy link
Copy Markdown
Contributor
teuthology-suite -m smithi -s crimson-rados -p 101 --force-priority -c wip-perezjos-crimson-only-30-09-2025-PR65726 -f crimson-debug --filter seastore --distro centos --distro-version 9 --suite-branch main --suite-repo https://github.com/ceph/ceph.git #PR65726
2025-10-01 15:56:14,350.350 INFO:teuthology.suite.run:Test results viewable at 

https://pulpito.ceph.com/jjperez-2025-10-01_15:52:17-crimson-rados-wip-perezjos-crimson-only-30-09-2025-PR65726-distro-crimson-debug-smithi/

  • Approval run:

@Matan-B

Matan-B commented Oct 15, 2025 •

Copy link
Copy Markdown
Contributor

@xxhdx1985126

Copy link
Copy Markdown
Member Author

@xxhdx1985126, do you think https://tracker.ceph.com/issues/73343 could be related?

Um, matan, I'm sorry, it looks to me that the issue is not relevant with this PR. But I wonder why you asked, since I may be missing something.

@Matan-B

Matan-B commented Oct 16, 2025

Copy link
Copy Markdown
Contributor

Um, matan, I'm sorry, it looks to me that the issue is not relevant with this PR. But I wonder why you asked, since I may be missing something.

Only because the first occurrence of this issue popped when testing the PR, WDYT?

@perezjosibm perezjosibm moved this from Tested to Needs QA in Crimson Nov 11, 2025
@perezjosibm

perezjosibm commented Nov 11, 2025 •

Copy link
Copy Markdown
Contributor

@Matan-B

Matan-B commented Nov 13, 2025

Copy link
Copy Markdown
Contributor

I might be missing something but the review above seems inaccurate:

Failures, unrelated:
- 8595690 -- https://tracker.ceph.com/issues/70501 - Backfill: PeeringState::Recovered assert !ps->needs_recovery()
- 8595646 8595649 8595670 8595742 8595749 8595603 -- https://tracker.ceph.com/issues/73169 - wait_for_recovery is failing

Where the issues are:

Failures, unrelated:
- 8595690 -- https://tracker.ceph.com/issues/70501 - Backfill: PeeringState::Recovered assert !ps->needs_recovery()
- 8595742 8595749  -- https://tracker.ceph.com/issues/73169 - wait_for_recovery is failing
- 8595603 - https://tracker.ceph.com/issues/71478 - rados_api_tests: Assertion 'get() != pointer()' failed
- 8595646 - https://tracker.ceph.com/issues/72778 - SLOW_OPS
- 8595649 -  https://tracker.ceph.com/issues/73790 - pin_to_extent abort
- 8595670 - https://tracker.ceph.com/issues/73791 - not all pgs scrubbed

Merging based on the above

@Matan-B
Matan-B merged commit c94c142 into ceph:main Nov 13, 2025
@Matan-B Matan-B moved this from Tested to Merged (Main) in Crimson Nov 13, 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/19327802773

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.

3 participants