Repository navigation
crimson/osd: add get_latest_osdmap admin command - #73077
Merged
Merged
Conversation
ronen-fr
force-pushed
the
wip-rf-asok25
branch
from
October 26, 2026 06:29
6223b7e to
ca620b8
Compare
rzarzynski
approved these changes
Oct 26, 2026
| DEBUG(""); | ||
| // unlike classic, do not wait forever: nothing would interrupt the | ||
| // wait on OSD shutdown | ||
| static constexpr auto timeout = std::chrono::seconds(60); |
Contributor
There was a problem hiding this comment.
IIURC crimson's shutdown might be extended by up to 60 seconds if there is laggy OSDMap fetch in progress. That should be fine.
ronen-fr
force-pushed
the
wip-rf-asok25
branch
from
November 9, 2026 16:50
ca620b8 to
a21f753
Compare
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]>
ronen-fr
force-pushed
the
wip-rf-asok25
branch
from
November 11, 2026 18:35
a21f753 to
07494d9
Compare
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 |
Contributor
Author
|
Merging based on my Teuthology testing. See https://gist.github.com/ronen-fr/890cd9697e41e10eb2f1fa5c5608c979 |
Contributor
Author
|
jenkins test make check arm64 |
Contributor
Author
|
jenkins test docs |
4 similar comments
Contributor
Author
|
jenkins test docs |
Contributor
Author
|
jenkins test docs |
Contributor
Author
|
jenkins test docs |
Contributor
Author
|
jenkins test docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.