]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: prevent alert redirect 47145/head
authorTatjana Dehler <tdehler@suse.com>
Thu, 7 Jul 2022 15:21:14 +0000 (17:21 +0200)
committerTatjana Dehler <tdehler@suse.com>
Mon, 18 Jul 2022 08:40:37 +0000 (10:40 +0200)
commit2794d7e2399ac7064584b0cb76c031bb0c472d15
treedf99c42c49d7e3e9b64d333ce5140354e26d6764
parent9b04e03b76644a11addfaa0475685c714a2d609a
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>
(cherry picked from commit 965005e0789e566ccadce7a326b0e197ab8d7f5f)
src/pybind/mgr/dashboard/module.py