From f4350f67493dcc124d7bc8f1b538658df3751eca Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 18 Feb 2020 13:07:13 -0600 Subject: [PATCH] mgr/cephadm: fix invalidate helpers These should wake up the serve() thread. Signed-off-by: Sage Weil --- src/pybind/mgr/cephadm/module.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index a8eddecbef3..bfea30ffbfc 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -163,11 +163,13 @@ class HostCache(): # type: (str) -> None if host in self.last_daemon_update: del self.last_daemon_update[host] + self.mgr.event.set() def invalidate_host_devices(self, host): # type: (str) -> None if host in self.last_device_update: del self.last_device_update[host] + self.mgr.event.set() def save_host(self, host): # type: (str) -> None @@ -1870,7 +1872,6 @@ class CephadmOrchestrator(MgrModule, orchestrator.OrchestratorClientMixin): sd.status_desc = 'starting' self.cache.add_daemon(host, sd) self.cache.invalidate_host_daemons(host) - self.event.set() return "{} {} on host '{}'".format( 'Reconfigured' if reconfig else 'Deployed', name, host) -- 2.39.5