From: Vipin Balachandran Date: Tue, 11 Mar 2014 00:21:03 +0000 (+0530) Subject: vmware: Mark VMware ESX vmdk driver as deprecated X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=0fc3afdff1a2b87589206ffb22b041d58fe0f99b;p=openstack-build%2Fcinder-build.git vmware: Mark VMware ESX vmdk driver as deprecated The VMware ESX driver in Nova is now marked as deprecated and will be removed in Juno release. This change marks the VMware ESX vmdk driver as deprecated since it is intended for use with the ESX driver in Nova. The plan is to remove the ESX vmdk driver in Juno release. Closes-Bug: #1291194 DocImpact Change-Id: I285f3461c1ccef56329b70417fb023405dfceb5e --- diff --git a/cinder/volume/drivers/vmware/vmdk.py b/cinder/volume/drivers/vmware/vmdk.py index 0321bda27..dbd31f497 100644 --- a/cinder/volume/drivers/vmware/vmdk.py +++ b/cinder/volume/drivers/vmware/vmdk.py @@ -150,8 +150,16 @@ class VMwareEsxVmdkDriver(driver.VolumeDriver): # 1.2.0 - storage profile volume types based placement of volumes VERSION = '1.2.0' + def _do_deprecation_warning(self): + LOG.warn(_('The VMware ESX VMDK driver is now deprecated and will be ' + 'removed in the Juno release. The VMware vCenter VMDK ' + 'driver will remain and continue to be supported.')) + def __init__(self, *args, **kwargs): super(VMwareEsxVmdkDriver, self).__init__(*args, **kwargs) + + self._do_deprecation_warning() + self.configuration.append_config_values(vmdk_opts) self._session = None self._stats = None