]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: upgrade all ceph daemon types 33772/head
authorSage Weil <sage@redhat.com>
Fri, 6 Mar 2020 03:27:26 +0000 (21:27 -0600)
committerSage Weil <sage@redhat.com>
Fri, 6 Mar 2020 03:28:36 +0000 (21:28 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py

index 1390eef4a7c4b5e584c0f753da32ce44a2851f15..04e6ec113562d2443f1df66ebea82e1bb60de195 100644 (file)
@@ -784,7 +784,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
 
         daemons = self.cache.get_daemons()
         done = 0
-        for daemon_type in ['mgr', 'mon', 'osd', 'rgw', 'mds', 'crash']:
+        for daemon_type in CEPH_TYPES:
             self.log.info('Upgrade: Checking %s daemons...' % daemon_type)
             need_upgrade_self = False
             for d in daemons:
@@ -922,6 +922,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
                         'name': 'container_image',
                         'who': section,
                     })
+
             self.log.info('Upgrade: All %s daemons are up to date.' %
                           daemon_type)
 
@@ -933,7 +934,7 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
             'value': target_name,
             'who': 'global',
         })
-        for daemon_type in ['mgr', 'mon', 'osd', 'rgw', 'mds']:
+        for daemon_type in CEPH_TYPES:
             ret, image, err = self.mon_command({
                 'prefix': 'config rm',
                 'name': 'container_image',