Skip to content

cephfs: fix monclient not subscribed monmap/config - #64909

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

vshankar merged 2 commits into
ceph:mainfrom
darkwsh:cephfs_fix_monc_not_subcribe

Conversation

@darkwsh

@darkwsh darkwsh commented Aug 8, 2025 •

Copy link
Copy Markdown

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 [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

@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

vshankar commented Sep 1, 2025

Copy link
Copy Markdown
Contributor

jenkins test make check arm64

@vshankar

Copy link
Copy Markdown
Contributor

@chrisphoffman gentle nudge on this.

@vshankar

Copy link
Copy Markdown
Contributor

@chrisphoffman gentle nudge.

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

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

vshankar commented Nov 2, 2025

Copy link
Copy Markdown
Contributor

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

vshankar commented Nov 2, 2025

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Nov 6, 2025

Copy link
Copy Markdown

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

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

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 <[email protected]>
@vshankar
vshankar force-pushed the cephfs_fix_monc_not_subcribe branch from 16bf73a to 1de46f3 Compare November 17, 2025 09:36
@vshankar

Copy link
Copy Markdown
Contributor

rebased+updated

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