Skip to content

tentacle: mgr: isolated CherryPy to prevent global state sharing - #67465

Merged
batrick merged 2 commits into
ceph:tentaclefrom
rhcs-dashboard:cherrypy-tentacle
May 9, 2026
Merged

batrick merged 2 commits into
ceph:tentaclefrom
rhcs-dashboard:cherrypy-tentacle

Conversation

@nizamial09

@nizamial09 nizamial09 commented Feb 23, 2026 •

Copy link
Copy Markdown
Member

@yaarith

yaarith commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

backport of #67227

@nizamial09 nizamial09 changed the title Cherrypy tentacle tentacle: mgr: isolated CherryPy to prevent global state sharing Mar 3, 2026
@nizamial09
nizamial09 marked this pull request as ready for review March 3, 2026 07:17
@nizamial09
nizamial09 requested review from a team as code owners March 3, 2026 07:17
@nizamial09
nizamial09 requested review from a team as code owners March 4, 2026 11:20
@nizamial09

Copy link
Copy Markdown
Member Author

depends on #67511

@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown

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

@yaarith

yaarith commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

@nizamial09 #67511 is now merged, we need to rebase this PR please.

@batrick

batrick commented Apr 21, 2026

Copy link
Copy Markdown
Member

jenkins test docs

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

Ack from the RBD perspective

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Apr 21, 2026
anmol-ibm and others added 2 commits April 22, 2026 09:08
fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2414677
Signed-off-by: Anmol Babu <[email protected]>
(cherry picked from commit 65282be)

 Conflicts:
	src/pybind/mgr/prometheus/module.py
 - imports needed to resolved as per the new change
as the modules are now being loaded onto the main interpreter (see
ceph#66244), the
cherrypy is getting hit with an issue where its global state is being
affecting all the modules updating the cherrypy config simultaneously in
the same tree.

So i am adding a CherryPyMgr which manages all the independent servers
that will be created across all modules. This CherryPyMgr will create
its own server instances by utilizing cherrypy's WSGI Server and
eliminates the global state sharing. Each module or app can create their
own tree and start an adapter which will open an independent server for
that app.

- also added a method to update the config in place so CORS urls can be
  configured without restarting servers.

Fixes: https://tracker.ceph.com/issues/74643, https://tracker.ceph.com/issues/74543, https://tracker.ceph.com/issues/74980
Signed-off-by: Nizamudeen A <[email protected]>
(cherry picked from commit 1384ae3)

 Conflicts:
	src/pybind/mgr/prometheus/module.py
 - accepted the incoming changes
@NitzanMordhai

Copy link
Copy Markdown
Contributor

@batrick batrick added the releng-audit-queue Release engineering: queued for backport verification audit. label Apr 30, 2026
@batrick

batrick commented May 2, 2026

Copy link
Copy Markdown
Member

@batrick batrick added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-queue Release engineering: queued for backport verification audit. labels May 2, 2026

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No action needs to be taken. This is for posterity.

Automated Backport Parity Review - Multiple PRs Detected

This backport appears to pull commits from multiple main PRs including: PR #66605, PR #67227.

This must be made explicit in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.


Automated Redmine Linkage Audit

The following tracking irregularities were found:

  • Orphaned Main PR: Could not find a Redmine tracker for main PR #66605. Please create a ticket, set its 'Pull Request ID', populate the 'Backports' field, and ensure it is in the 'Pending Backport' state.
  • Missing PR Link: Backport tracker #75283 has no 'Pull Request ID' field set. Please link it to PR #67465.

Commit Parity Visualizer

BACKPORT PR #67465 SOURCE PR SOURCE STATUS
3112e5a Fix the prometheus module crash PR #66605 65282be Fix the prometheus module crash
a2f8e8d mgr: isolated CherryPy to prevent global state sharing PR #67227 1384ae3 mgr: isolated CherryPy to prevent global state sharing

🛟 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.

@batrick batrick added the releng-audit-fail Release engineering: failed backport verification audit. label May 8, 2026
@batrick
batrick merged commit 0f1c260 into ceph:tentacle May 9, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard May 9, 2026
@nizamial09
nizamial09 deleted the cherrypy-tentacle branch June 18, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants