]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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)
committerSebastian Wagner <sebastian.wagner@suse.com>
Thu, 21 May 2020 21:33:18 +0000 (23:33 +0200)
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>
(cherry picked from commit e4aa556fd0e2859b3992274b64d40e0f0561c76f)

src/pybind/mgr/cephadm/module.py

index 70922599cb277fcf4a07ebc6018b14eb6d81d399..157126a3aa209ae413f2a1d8b768e5b65fe403df 100644 (file)
@@ -2082,7 +2082,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?