diff --git a/ironic_python_agent/config.py b/ironic_python_agent/config.py index 5c5de305c..cd6de31f6 100644 --- a/ironic_python_agent/config.py +++ b/ironic_python_agent/config.py @@ -329,8 +329,9 @@ cli_opts = [ 'cluster which may be visible over a storage fabric ' 'such as FibreChannel.'), cfg.BoolOpt('md5_enabled', - default=False, - help='If the MD5 algorithm is enabled for file checksums.'), + default=True, + help='If the MD5 algorithm is enabled for file checksums. ' + 'Will be changed to False in the future.'), ] CONF.register_cli_opts(cli_opts) diff --git a/ironic_python_agent/tests/unit/extensions/test_standby.py b/ironic_python_agent/tests/unit/extensions/test_standby.py index 9f5a354b5..195336df7 100644 --- a/ironic_python_agent/tests/unit/extensions/test_standby.py +++ b/ironic_python_agent/tests/unit/extensions/test_standby.py @@ -123,6 +123,7 @@ class TestStandbyExtension(base.IronicAgentTest): standby._validate_image_info(None, image_info) def test_validate_image_info_legacy_md5_checksum(self): + CONF.set_override('md5_enabled', False) image_info = _build_fake_image_info() del image_info['os_hash_algo'] del image_info['os_hash_value'] diff --git a/releasenotes/notes/disable-md5-image-checksum-7def176928d36e75.yaml b/releasenotes/notes/disable-md5-image-checksum-7def176928d36e75.yaml index 7fcacac44..5c9cfd05b 100644 --- a/releasenotes/notes/disable-md5-image-checksum-7def176928d36e75.yaml +++ b/releasenotes/notes/disable-md5-image-checksum-7def176928d36e75.yaml @@ -6,14 +6,7 @@ features: (SHA-2) and SHA256 (SHA-2) checksums to be identified and utilized without an explicit declaration of the checksum type utilizing the ``os_hash_algo`` value. -upgrade: - - | - MD5 support for checksums have been disabled by default. This may result - in rebulids or manual deploy attempts to fail if no updated checksum has - been supplied for the ``os_hash_value`` and ``os_hash_algo`` settings. - To re-enable MD5 support, you may utilize a the ``[DEFAULT]md5_enabled`` - setting. deprecations: - | - Support for MD5 checksums have been deprecated and disabled by default. - Support for MD5 checksums will be removed after the 2024 Release. + Support for MD5 checksums have been deprecated and will be removed after + the 2024 Release.