]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix bind address regression from CherryPy isolation wip-77662-umbrella 69714/head
authorAfreen Misbah <afreen@ibm.com>
Tue, 23 Jun 2026 13:30:22 +0000 (19:00 +0530)
committerAfreen Misbah <afreen@ibm.com>
Fri, 26 Jun 2026 15:34:02 +0000 (21:04 +0530)
commit2f243e5688a7da03516bf780aed6e635815ba4ec
treeb0513677902b99ac292c515d7e1cdc68f295339c
parent7583396b95bbdf8f4ee48f99d9d250c7486f97bc
mgr/dashboard: fix bind address regression from CherryPy isolation

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. 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 <afreen@ibm.com>
(cherry picked from commit f45a1bfc93596f17370ee38ce241ae8123d81e8e)
src/pybind/mgr/dashboard/module.py
src/pybind/mgr/dashboard/tests/test_settings.py