]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/cephadm: refresh osd config when mons change
authorTim Serong <tserong@suse.com>
Wed, 6 May 2020 11:12:56 +0000 (21:12 +1000)
committerTim Serong <tserong@suse.com>
Wed, 6 May 2020 11:13:20 +0000 (21:13 +1000)
OSDs don't have a service spec, so the previous implementation
was not reconfiguring them when the list of mons changed.

Fixes: https://tracker.ceph.com/issues/45393
Signed-off-by: Tim Serong <tserong@suse.com>
src/pybind/mgr/cephadm/module.py

index 07cf44ef0d24d6e5fee602f583f7f9cb9bb50d7b..80f284b4aace863f15eee48cbf889b16de38835b 100644 (file)
@@ -2554,7 +2554,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
                 self._remove_daemon(dd.name(), dd.hostname)
 
             # ignore unmanaged services
-            if not spec or spec.unmanaged:
+            if spec and spec.unmanaged:
                 continue
 
             # dependencies?