]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/cephadm/ugprade: stop disabling FSMap sanity checks 52863/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 7 Aug 2023 15:23:39 +0000 (11:23 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 7 Aug 2023 15:23:39 +0000 (11:23 -0400)
This config was set to work around a bug upgrading to v16.2.5. Pacific is no
longer a valid upgrade base to Squid so we no longer need to disable this
safety check.

Fixes: https://tracker.ceph.com/issues/53155
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/pybind/mgr/cephadm/upgrade.py

index 552964c845871475221ad9c55a179f07f5a1c0f9..bca145aa8d4f2a16e01ddf22c50f6b163d2d4369 100644 (file)
@@ -1133,18 +1133,6 @@ class CephadmUpgrade:
 
         image_settings = self.get_distinct_container_image_settings()
 
-        # Older monitors (pre-v16.2.5) asserted that FSMap::compat ==
-        # MDSMap::compat for all fs. This is no longer the case beginning in
-        # v16.2.5. We must disable the sanity checks during upgrade.
-        # N.B.: we don't bother confirming the operator has not already
-        # disabled this or saving the config value.
-        self.mgr.check_mon_command({
-            'prefix': 'config set',
-            'name': 'mon_mds_skip_sanity',
-            'value': '1',
-            'who': 'mon',
-        })
-
         if self.upgrade_state.daemon_types is not None:
             logger.debug(
                 f'Filtering daemons to upgrade by daemon types: {self.upgrade_state.daemon_types}')
@@ -1281,11 +1269,5 @@ class CephadmUpgrade:
                 'who': name_to_config_section(daemon_type),
             })
 
-        self.mgr.check_mon_command({
-            'prefix': 'config rm',
-            'name': 'mon_mds_skip_sanity',
-            'who': 'mon',
-        })
-
         self._mark_upgrade_complete()
         return