HyperV: Add todo to remove HyperVLiveMigrateData object

With HyperV driver going away, HyperVLiveMigrateData
is not needed but we will keep it for a couple of cycle.
Adding note about removing it in later releases.

Change-Id: I3574488faffb5a6f5993097496be4de146d61d5c
This commit is contained in:
Ghanshyam Mann
2024-02-13 11:12:52 -08:00
parent e11f08673e
commit 260dbd9761
2 changed files with 5 additions and 2 deletions

View File

@@ -827,8 +827,8 @@ class DiskFormat(BaseNovaEnum):
ALL = (RBD, LVM, QCOW2, RAW, PLOOP, VHD, VMDK, VDI, ISO)
# TODO(stephenfin): Remove the xenapi value when we bump the 'Diagnostics'
# object (the only user of this enum) to 2.0
# TODO(stephenfin): Remove the xenapi and hyperv value when we bump the
# 'Diagnostics' object (the only user of this enum) to 2.0
class HypervisorDriver(BaseNovaEnum):
LIBVIRT = "libvirt"
XENAPI = "xenapi"

View File

@@ -327,6 +327,9 @@ class LibvirtLiveMigrateData(LiveMigrateData):
return self.is_shared_block_storage or self.is_shared_instance_path
# TODO(gmann): HyperV virt driver has been removed in Nova 29.0.0 (OpenStack
# 2024.1) release but we kept this object for a couple of cycle. This can be
# removed too in Nova 31.0.0 (OpenStack 2025.1) or later.
@obj_base.NovaObjectRegistry.register
class HyperVLiveMigrateData(LiveMigrateData):
# Version 1.0: Initial version