From 17032f6be22e9efc3e199d7e35091025bfaae965 Mon Sep 17 00:00:00 2001 From: Redouane Kachach Date: Tue, 17 May 2022 17:26:39 +0200 Subject: [PATCH] mgr/cephadm: stripping out / from the end of the url Fixes: https://tracker.ceph.com/issues/55638 Signed-off-by: Redouane Kachach --- src/pybind/mgr/cephadm/services/monitoring.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/cephadm/services/monitoring.py b/src/pybind/mgr/cephadm/services/monitoring.py index 6bde0cc3e8c18..0bd388f461fc2 100644 --- a/src/pybind/mgr/cephadm/services/monitoring.py +++ b/src/pybind/mgr/cephadm/services/monitoring.py @@ -148,7 +148,7 @@ class AlertmanagerService(CephadmService): proto = None # http: or https: url = mgr_map.get('services', {}).get('dashboard', None) if url: - dashboard_urls.append(url) + dashboard_urls.append(url.rstrip('/')) p_result = urlparse(url) proto = p_result.scheme port = p_result.port @@ -164,7 +164,7 @@ class AlertmanagerService(CephadmService): continue assert dd.hostname is not None addr = self._inventory_get_fqdn(dd.hostname) - dashboard_urls.append(build_url(scheme=proto, host=addr, port=port)) + dashboard_urls.append(build_url(scheme=proto, host=addr, port=port).rstrip('/')) for dd in self.mgr.cache.get_daemons_by_service('snmp-gateway'): assert dd.hostname is not None -- 2.39.5