]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm/upgrade: do not repeat crash message 40242/head
authorSage Weil <sage@newdream.net>
Fri, 19 Mar 2021 14:46:09 +0000 (10:46 -0400)
committerSage Weil <sage@newdream.net>
Fri, 19 Mar 2021 14:46:09 +0000 (10:46 -0400)
Signed-off-by: Sage Weil <sage@newdream.net>
src/pybind/mgr/cephadm/upgrade.py

index 10615f35d8980b06cc513a6ed0677501e7ee118e..820b05396248a497cd3037ca4d74cf334132a913 100644 (file)
@@ -636,10 +636,11 @@ class CephadmUpgrade:
                         (count, daemon_type, short_version, target_version))
 
             # push down configs
-            if image_settings.get(daemon_type) != target_image:
+            daemon_type_section = name_to_config_section(daemon_type)
+            if image_settings.get(daemon_type_section) != target_image:
                 logger.info('Upgrade: Setting container_image for all %s' %
                             daemon_type)
-                self.mgr.set_container_image(name_to_config_section(daemon_type), target_image)
+                self.mgr.set_container_image(daemon_type_section, target_image)
             to_clean = []
             for section in image_settings.keys():
                 if section.startswith(name_to_config_section(daemon_type) + '.'):