]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: prevent alert redirect 47011/head
authorTatjana Dehler <tdehler@suse.com>
Thu, 7 Jul 2022 15:21:14 +0000 (17:21 +0200)
committerTatjana Dehler <tdehler@suse.com>
Wed, 13 Jul 2022 15:12:15 +0000 (17:12 +0200)
commit965005e0789e566ccadce7a326b0e197ab8d7f5f
treeae66c3e3973140f84fbe0a1ea3caee7af0ea4f51
parent55e46c7e023f2924c93abca495d7620055785b6a
mgr/dashboard: prevent alert redirect

Prevent Alertmanager alerts from being redirected to the active mgr
dashboard instance. There are two reasons for it:

1. It doesn't bring any additional benefit. The Alertmanager config
   includes all available mgr instances - active and passive ones. In
   case of an alert, it will be sent to all of them. It ensures that
   the active mgr dashboard will receive the alert in any case.
2. The redirect URL includes the mgr IP and NOT the FQDN. This leads
   to issues in environments where an SSL certificate is configured and
   matches the FQDNs, only.

Fixes: https://tracker.ceph.com/issues/56401
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
src/pybind/mgr/dashboard/module.py