Deprecated fedora_atomic driver

Log a warning about fedora-atomic driver deprecation this cycle, so that
users can start migrating to using fedora-coreos.

fedora-atomic driver will be removed in a future cycle.

Change-Id: I026d4fa722cd132e5989998bf902b8a2c73c5a8d
This commit is contained in:
Jake Yip 2022-03-16 14:46:25 +11:00 committed by Jake Yip
parent 6cdb367cfc
commit fdfb8d4b79
2 changed files with 19 additions and 0 deletions

View File

@ -267,6 +267,11 @@ class ClusterTemplatesController(base.Controller):
"different storage driver, such as overlay2. overlay2 will be set "
"as the default storage driver from Victoria cycle in Magnum.")
_fedora_atomic_deprecation_note = (
"The fedora_atomic driver is deprecated in favor of the fedora_coreos "
"driver. Please migrate to the fedora_coreos driver. fedora_atomic "
"driver will be remove in a future Magnum version.")
def _generate_name_for_cluster_template(self, context):
"""Generate a random name like: zeta-22-model."""
@ -421,6 +426,12 @@ class ClusterTemplatesController(base.Controller):
DeprecationWarning)
LOG.warning(self._devicemapper_overlay_deprecation_note)
if (cluster_template_dict['coe'] == 'kubernetes' and
cluster_template_dict['cluster_distro'] == 'fedora-atomic'):
warnings.warn(self._fedora_atomic_deprecation_note,
DeprecationWarning)
LOG.warning(self._fedora_atomic_deprecation_note)
# NOTE(yuywz): We will generate a random human-readable name for
# cluster_template if the name is not specified by user.
arg_name = cluster_template_dict.get('name')

View File

@ -0,0 +1,8 @@
---
deprecations:
- |
Deprecate the use of os_distro 'fedora-atomic' with COE 'kubernetes'.
Fedora Atomic OS has been EOL since 2019-11-26. Users using COE
'kubernetes' are encouraged to migrate to Fedora CoreOS and the
'fedora-coreos' driver. 'fedora-atomic' driver will be removed in a future
Magnum verison.