]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: fix upgrade ok-to-stop condition check 33469/head
authorSage Weil <sage@redhat.com>
Fri, 21 Feb 2020 18:50:10 +0000 (12:50 -0600)
committerSage Weil <sage@redhat.com>
Fri, 21 Feb 2020 18:50:10 +0000 (12:50 -0600)
Broke this in 1072a7e3b5026c1e605dd45967fa555d2e6a0d14

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py

index d73da8ba087e9d515ca665685fad380f1c6970e7..4e3c19a94cd382b7ad5d0881caa68be4bf148024 100644 (file)
@@ -563,7 +563,9 @@ class CephadmOrchestrator(MgrModule, orchestrator.OrchestratorClientMixin):
         tries = 4
         while tries > 0:
             if s.daemon_type not in ['mon', 'osd', 'mds']:
-                break
+                self.log.info('Upgrade: It is presumed safe to stop %s.%s' %
+                              (s.daemon_type, s.daemon_id))
+                return True
             ret, out, err = self.mon_command({
                 'prefix': '%s ok-to-stop' % s.daemon_type,
                 'ids': [s.daemon_id],