]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix bind address regression from CherryPy isolation 69574/head
authorAfreen Misbah <afreen@ibm.com>
Tue, 23 Jun 2026 13:30:22 +0000 (19:00 +0530)
committerAfreen Misbah <afreen@ibm.com>
Tue, 23 Jun 2026 16:59:12 +0000 (22:29 +0530)
commitf45a1bfc93596f17370ee38ce241ae8123d81e8e
tree9b64e303d2e2b01e924feabde0ad44ddd121c756
parenta12a619bba5c11333480b0e8d89ab993ab043127
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>
src/pybind/mgr/dashboard/module.py
src/pybind/mgr/dashboard/tests/test_settings.py