Skip to content

cephfs: fix monclient not subscribed monmap/config#64909

Merged
vshankar merged 2 commits intoceph:mainfrom
darkwsh:cephfs_fix_monc_not_subcribe
Nov 17, 2025
Merged

cephfs: fix monclient not subscribed monmap/config#64909
vshankar merged 2 commits intoceph:mainfrom
darkwsh:cephfs_fix_monc_not_subcribe

Conversation

@darkwsh
Copy link

@darkwsh darkwsh commented Aug 8, 2025

StandaloneClient::init makes monclient authenticated
early cause objecter::start called. It will makes monclient
ignore subscribe monmap/config.

The first commit is a unit test for this case,
the second commit is a patch to ensure that monclient
authenticated first.

Fixes: https://tracker.ceph.com/issues/72493
Signed-off-by: Shaohui Wang wangshaohui.0512@bytedance.com

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

@github-actions github-actions bot added build/ops cephfs Ceph File System tests labels Aug 8, 2025
@vshankar vshankar requested a review from a team August 11, 2025 12:28
@vshankar
Copy link
Contributor

vshankar commented Sep 1, 2025

jenkins test make check arm64

@vshankar
Copy link
Contributor

@chrisphoffman gentle nudge on this.

@vshankar
Copy link
Contributor

@chrisphoffman gentle nudge.

Copy link
Contributor

@chrisphoffman chrisphoffman left a comment

Choose a reason for hiding this comment

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

Thank you for your submission. This overall looks good, there's one minor thing to change.

Can you add the below "Fixes:.." to your commit message on the Client change?
Fixes: https://tracker.ceph.com/issues/72493

@vshankar
Copy link
Contributor

vshankar commented Nov 2, 2025

Thank you for your submission. This overall looks good, there's one minor thing to change.

Can you add the below "Fixes:.." to your commit message on the Client change? Fixes: https://tracker.ceph.com/issues/72493

@darkwsh -- can you please do the needful as above?

@vshankar
Copy link
Contributor

vshankar commented Nov 2, 2025

This PR is under test in https://tracker.ceph.com/issues/73693.

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

wangshaohui.0512 added 2 commits November 17, 2025 09:15
In SingletonClient::init(), objecter->start() called before
monc->authenticate(), it makes conns of monc authencated before
monc->authenticate() called if mons reply faster, in this case,
monc will not subsribe monmap/config.

Signed-off-by: Shaohui Wang <wangshaohui.0512@bytedance.com>
Signed-off-by: Shaohui Wang <wangshaohui.0512@bytedance.com>
@vshankar vshankar force-pushed the cephfs_fix_monc_not_subcribe branch from 16bf73a to 1de46f3 Compare November 17, 2025 09:36
@vshankar
Copy link
Contributor

rebased+updated

@vshankar vshankar dismissed chrisphoffman’s stale review November 17, 2025 13:25

Comment addressed.

@vshankar vshankar merged commit fb29ffe into ceph:main Nov 17, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants