From: Sage Weil Date: Mon, 19 Jul 2021 22:12:24 +0000 (-0400) Subject: mgr/cephadm: ingress: tolerate no daemons X-Git-Tag: v17.1.0~1281^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bae406f74607b16c0da1382537d9bab49d45061e;p=ceph.git 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 --- diff --git a/src/pybind/mgr/cephadm/services/ingress.py b/src/pybind/mgr/cephadm/services/ingress.py index 9c49cc6932d9..9f8cc676556c 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]