From cd8ff026e48c4f305ba550e1d34ff0eb37c59366 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 19 Jul 2021 18:12:24 -0400 Subject: [PATCH] mgr/cephadm: ingress: tolerate no daemons This doesn't normally happen, but did before the daemon inventory breakage (see previous patches) was fixed. Signed-off-by: Sage Weil (cherry picked from commit bae406f74607b16c0da1382537d9bab49d45061e) --- src/pybind/mgr/cephadm/services/ingress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/services/ingress.py b/src/pybind/mgr/cephadm/services/ingress.py index 3825ca862ab2..8a1a4c93875c 100644 --- a/src/pybind/mgr/cephadm/services/ingress.py +++ b/src/pybind/mgr/cephadm/services/ingress.py @@ -192,7 +192,7 @@ class IngressService(CephService): deps = sorted([d.name() for d in daemons if d.daemon_type == 'haproxy']) host = daemon_spec.host - hosts = sorted(list(set([str(d.hostname) for d in daemons]))) + hosts = sorted(list(set([host] + [str(d.hostname) for d in daemons]))) # interface bare_ip = str(spec.virtual_ip).split('/')[0] -- 2.47.3