Skip to content

tentacle: common: fix the ms_async_op_threads not applied successfully for daemons running in foreground mode - #66896

Merged
batrick merged 1 commit into
ceph:tentaclefrom
taodd:wip-74351-tentacle
Aug 24, 2026
Merged

batrick merged 1 commit into
ceph:tentaclefrom
taodd:wip-74351-tentacle

Conversation

@taodd

@taodd taodd commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

14 similar comments
@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@ceph-jenkins

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@github-actions github-actions Bot added this to the tentacle milestone Jan 13, 2026
@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 11, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 11, 2026
@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 11, 2026
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-fail Release engineering: failed backport verification audit. releng-audit-pass Release engineering: passed backport verification audit. labels Jul 11, 2026
@yuriw

yuriw commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri13-testing-20260729.211123-tentacle.

@github-actions

Copy link
Copy Markdown

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

@taodd
taodd force-pushed the wip-74351-tentacle branch from 1256e23 to 6bc547e Compare August 20, 2026 05:56
@github-actions github-actions Bot removed releng-audit-pass Release engineering: passed backport verification audit. needs-rebase labels Aug 20, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 20, 2026
@taodd
taodd force-pushed the wip-74351-tentacle branch from 6bc547e to be237b8 Compare August 20, 2026 06:35
@taodd

taodd commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

/audit retest

@github-actions

Copy link
Copy Markdown

🔄 Audit Retest Triggered by @taodd.

View workflow run

@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 20, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ceph Release Engineering Audit Report

Commit Parity Visualizer

BACKPORT PR #66896 SOURCE PR SOURCE STATUS
be237b8 common: drop stack singleton object of temp messenger for foreground ceph daemons PR #63390 30d66ff common: drop stack singleton object of temp messenger for foreground ceph daemons

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport be237b8 (cherry-pick of 30d66ff)

Affected File(s)

Range Diff

Click to expand
--- Original (30d66ff0)
+++ Backport (be237b82)
@@ -12,3 +12,12 @@
 
 Fixes: https://tracker.ceph.com/issues/71401
 Signed-off-by: dongdong tao <[email protected]>
+(cherry picked from commit 30d66ff075ca72c0c3759bfccee09302b221b25f)
+
+Conflicts:
+	src/common/ceph_context.cc
+	  Trivial context conflict: tentacle removed the adjacent
+	  CephContext::get_crypto_handler() (replaced by CryptoManager in
+	  commit 3078188a7bd), which the original hunk used as context.
+	  Kept that removal; the added drop_temp_messenger_obj() is
+	  unchanged and now placed after get_admin_socket().

================================================================================
RANGE DIFF
================================================================================

1:  30d66ff075c ! 1:  be237b82b94 common: drop stack singleton object of temp messenger for foreground ceph daemons
    @@ Commit message
     
         Fixes: https://tracker.ceph.com/issues/71401
         Signed-off-by: dongdong tao <[email protected]>
    +    (cherry picked from commit 30d66ff075ca72c0c3759bfccee09302b221b25f)
    +
    +    Conflicts:
    +            src/common/ceph_context.cc
    +              Trivial context conflict: tentacle removed the adjacent
    +              CephContext::get_crypto_handler() (replaced by CryptoManager in
    +              commit 3078188a7bd), which the original hunk used as context.
    +              Kept that removal; the added drop_temp_messenger_obj() is
    +              unchanged and now placed after get_admin_socket().
     
      ## src/common/ceph_context.cc ##
    -@@ src/common/ceph_context.cc: CryptoHandler *CephContext::get_crypto_handler(int type)
    -   }
    +@@ src/common/ceph_context.cc: AdminSocket *CephContext::get_admin_socket()
    +   return _admin_socket;
      }
      
     +void CephContext::drop_temp_messenger_obj()

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 20, 2026
@batrick
batrick force-pushed the wip-74351-tentacle branch from be237b8 to 09dab1e Compare August 21, 2026 18:11
…ceph daemons

During the initialization, OSD needs to create a temporary messenger to read config db from the ceph-mon.
This temporary messenger will need to create async messenger threads according to the local/default value of "ms_async_op_threads" .
If this option is not specified in ceph.conf, it will by default create 3 threads, then use these threads to read config db from ceph-mon.
Those threads are associated to a stack singletion object.
Now here is the difference between OSD running in foreground and background:
a. In background mode, this singleton object will be dropped before forking the child process in function notify_pre_fork,
then the new ms_async_op_threads fetched from mon config db will be used to create later messenger threads, this is what we want.
b. In foreground mode, this singleton object will not be dropped and will be reused by all later messengers,
thus the number of threads doesn't change.

Fixes: https://tracker.ceph.com/issues/71401
Signed-off-by: dongdong tao <[email protected]>
(cherry picked from commit 30d66ff)

Conflicts:
	src/common/ceph_context.cc
	  Trivial context conflict: tentacle removed the adjacent
	  CephContext::get_crypto_handler() (replaced by CryptoManager in
	  commit 3078188), which the original hunk used as context.
	  Kept that removal; the added drop_temp_messenger_obj() is
	  unchanged and now placed after get_admin_socket().
@batrick
batrick force-pushed the wip-74351-tentacle branch from 09dab1e to fd2d093 Compare August 21, 2026 23:54
@batrick

batrick commented Aug 24, 2026

Copy link
Copy Markdown
Member

jenkins test make check

@batrick batrick modified the milestones: tentacle, v20.2.5 Aug 24, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Aug 24, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @batrick.

View workflow run

@batrick
batrick merged commit 0f159b0 into ceph:tentacle Aug 24, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants