Skip to content

crimson/osd: add get_latest_osdmap admin command - #73077

Merged
ronen-fr merged 2 commits into
ceph:mainfrom
ronen-fr:wip-rf-asok25
Nov 13, 2026
Merged

ronen-fr merged 2 commits into
ceph:mainfrom
ronen-fr:wip-rf-asok25

Conversation

@ronen-fr

Copy link
Copy Markdown
Contributor

Fetch the newest osdmap epoch from the mon, and wait until the OSD
and all its PGs have advanced to it. Unlike Classic, the wait is capped
at 60s, as nothing would interrupt it on OSD shutdown. The command
reports the epoch it waited for.

Add OSDMapGate::wait_for_map_untracked(), for waiters that are not
operations.

DEBUG("");
// unlike classic, do not wait forever: nothing would interrupt the
// wait on OSD shutdown
static constexpr auto timeout = std::chrono::seconds(60);

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.

IIURC crimson's shutdown might be extended by up to 60 seconds if there is laggy OSDMap fetch in progress. That should be fine.

Fetch the newest osdmap epoch from the mon, and wait until the OSD
and all its PGs have advanced to it. Unlike Classic, the wait is capped
at 60s, as nothing would interrupt it on OSD shutdown. The command
reports the epoch it waited for.

Add OSDMapGate::wait_for_map_untracked(), for waiters that are not
operations.

Assisted-by: Claude
Signed-off-by: Ronen Friedman <[email protected]>
Output {"epoch": N}, the osdmap epoch waited for, as the Crimson
implementation does.

Assisted-by: Claude
Signed-off-by: Ronen Friedman <[email protected]>
@perezjosibm perezjosibm moved this from Needs QA to QA in Progress in Crimson Nov 12, 2026
@perezjosibm

perezjosibm commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor
PR=wip-perezjos-crimson-only-12-11-2026-PR73077
$ teuthology-suite -s crimson-rados -p 61 --force-priority -c $PR -f debug --filter-out osd-pg-merging,radosbench --suite-branch main --suite-repo https://github.com/ceph/ceph.git
2026-11-12 13:21:35,493.493 INFO:teuthology.suite.run:Test results viewable at 

https://pulpito-ng.ceph.com/jjperez-2026-11-12_13:15:50-crimson-rados-wip-perezjos-crimson-only-12-11-2026-PR73077-distro-debug-trial/

@ronen-fr

Copy link
Copy Markdown
Contributor Author

Merging based on my Teuthology testing. See https://gist.github.com/ronen-fr/890cd9697e41e10eb2f1fa5c5608c979

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test make check arm64

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test docs

4 similar comments
@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test docs

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test docs

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test docs

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test docs

@ronen-fr
ronen-fr merged commit 20b186a into ceph:main Nov 13, 2026
13 of 15 checks passed
@perezjosibm perezjosibm moved this from QA in Progress to Merged (Main) in Crimson Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Merged (Main)

Development

Successfully merging this pull request may close these issues.

3 participants