When unmanaging a volume, cinder would call unmanage.
This fix is to add unmanage to avoid NotImplementedError.
Change-Id: I11539cc945d432e23bebf085cacb0023b9a6a1e3
Closes-Bug:
1429702
'-o')]
fake_cli.assert_has_calls(expect_cmd)
+ def test_unmanage(self):
+ self.driverSetup()
+ try:
+ self.driver.unmanage(self.testData.test_volume)
+ except NotImplementedError:
+ self.fail('Interface unmanage need to be implemented')
+
class EMCVNXCLIDArrayBasedDriverTestCase(DriverTestCaseBase):
def setUp(self):
return self.cli.update_consistencygroup(context, group,
add_volumes,
remove_volumes)
+
+ def unmanage(self, volume):
+ """Unmanages a volume."""
+ return self.cli.unmanage(volume)
return self.cli.update_consistencygroup(context, group,
add_volumes,
remove_volumes)
+
+ def unmanage(self, volume):
+ """Unmanages a volume."""
+ self.cli.unmanage(volume)
class EMCVnxCliBase(object):
"""This class defines the functions to use the native CLI functionality."""
- VERSION = '05.03.00'
+ VERSION = '05.03.01'
stats = {'driver_version': VERSION,
'storage_protocol': None,
'vendor_name': 'EMC',
poll=False)
return data.get(self._client.LUN_POOL.key)
+ def unmanage(self, volume):
+ """Unmanages a volume"""
+ pass
+
@decorate_all_methods(log_enter_exit)
class EMCVnxCliPool(EMCVnxCliBase):