]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
vmware: Mark VMware ESX vmdk driver as deprecated
authorVipin Balachandran <vbala@vmware.com>
Tue, 11 Mar 2014 00:21:03 +0000 (05:51 +0530)
committerVipin Balachandran <vbala@vmware.com>
Tue, 11 Mar 2014 01:08:29 +0000 (06:38 +0530)
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

cinder/volume/drivers/vmware/vmdk.py

index 0321bda27e787b1b58e42229ebb375029a2b46af..dbd31f4972ae877117d14b8bf150d8d3f12577d0 100644 (file)
@@ -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