Skip to content

mgr/dashboard: fix bind address regression from CherryPy isolation - #69574

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:dash-binding
Jun 24, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:dash-binding

Conversation

@afreen23

Copy link
Copy Markdown
Contributor

The CherryPy isolation refactor (PR #67227) accidentally changed the dashboard bind address from wildcard (*:8443) to mon_ip:8443. The get_mgr_ip() replacement was originally only for URI generation, but the refactor passed the mutated address to CherryPyMgr.mount() as the actual socket bind address.

This breaks the management gateway when its VIP is not on the same interface as mon_ip, as the dashboard becomes unreachable on other interfaces.

Preserve the original wildcard address for binding and only use get_mgr_ip() for the advertised URI.

Fixes: https://tracker.ceph.com/issues/77491

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

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

looks good, thank you..

when I checked the prometheus, it correctly binds to the wildcard so we are fine there I suppose.

[root@ceph-node-00 ~]# ss -tlnp | grep 9283
LISTEN 0      5                    *:9283            *:*    users:(("ceph-mgr",pid=2271,fd=53))   

should we also look at the standby configuration of dashboard and see it also mutates the value?

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Jun 18, 2026
@nizamial09

Copy link
Copy Markdown
Member

should we also look at the standby configuration of dashboard and see it also mutates the value?

i see it used to but your fix fixes that too.

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

Can a test case be added to avoid a similar regression in the future? It seems all too easy for someone to fail to notice the difference between bind_addr and server_addr and accidentally undo this fix.

@rkachach

Copy link
Copy Markdown
Contributor

Can a test case be added to avoid a similar regression in the future? It seems all too easy for someone to fail to notice the difference between bind_addr and server_addr and accidentally undo this fix.

I was going to make the same comment as @idryomov :)

I think we need at least some UT to prevent this kind of issues happening again in the future

@afreen23

Copy link
Copy Markdown
Contributor Author

Added a testcase now @idryomov @rkachach

@afreen23

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@afreen23
afreen23 force-pushed the dash-binding branch 3 times, most recently from 4629b10 to d57c5a1 Compare June 23, 2026 10:26
@afreen23

Copy link
Copy Markdown
Contributor Author

jenkins test api

@afreen23

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@afreen23
afreen23 force-pushed the dash-binding branch 2 times, most recently from 3ed168f to 496469d Compare June 23, 2026 13:47
The CherryPy isolation refactor (PR ceph#67227) accidentally changed the
dashboard bind address from wildcard (*:8443) to mon_ip:8443. The
get_mgr_ip() replacement was originally only for URI generation, but
the refactor passed the mutated address to CherryPyMgr.mount() as the
actual socket bind address.

This breaks the management gateway when its VIP is not on the same
interface as mon_ip, as the dashboard becomes unreachable on other
interfaces.

Preserve the original wildcard address for binding and only use
get_mgr_ip() for the advertised URI. Add regression test to prevent
future confusion between bind_addr and server_addr.

Fixes: https://tracker.ceph.com/issues/77491

Signed-off-by: Afreen Misbah <[email protected]>
@afreen23

afreen23 commented Jun 23, 2026 •

Copy link
Copy Markdown
Contributor Author

rebasing , after #69676 merged - for API test fix.

@afreen23

Copy link
Copy Markdown
Contributor Author

@afreen23
afreen23 merged commit c47da65 into ceph:main Jun 24, 2026
6 checks passed
@afreen23
afreen23 deleted the dash-binding branch June 24, 2026 15:43
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Jun 24, 2026
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.

5 participants