Repository navigation
mgr/dashboard: fix bind address regression from CherryPy isolation - #69574
Conversation
nizamial09
left a comment
There was a problem hiding this comment.
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?
i see it used to but your fix fixes that too. |
idryomov
left a comment
There was a problem hiding this comment.
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 |
|
jenkins test make check |
4629b10 to
d57c5a1
Compare
|
jenkins test api |
|
jenkins test dashboard |
3ed168f to
496469d
Compare
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]>
|
rebasing , after #69676 merged - for API test fix. |
|
No errrors noticed related to this https://tracker.ceph.com/issues/77627 |
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.