Merge "Fixes VNX NotImplementedError of unmanage"
This commit is contained in:
commit
5b3ff204cc
@ -3064,6 +3064,13 @@ Time Remaining: 0 second(s)
|
||||
'-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):
|
||||
|
@ -247,3 +247,7 @@ class EMCCLIFCDriver(driver.FibreChannelDriver):
|
||||
return self.cli.update_consistencygroup(context, group,
|
||||
add_volumes,
|
||||
remove_volumes)
|
||||
|
||||
def unmanage(self, volume):
|
||||
"""Unmanages a volume."""
|
||||
return self.cli.unmanage(volume)
|
||||
|
@ -226,3 +226,7 @@ class EMCCLIISCSIDriver(driver.ISCSIDriver):
|
||||
return self.cli.update_consistencygroup(context, group,
|
||||
add_volumes,
|
||||
remove_volumes)
|
||||
|
||||
def unmanage(self, volume):
|
||||
"""Unmanages a volume."""
|
||||
self.cli.unmanage(volume)
|
||||
|
@ -1582,7 +1582,7 @@ class CommandLineHelper(object):
|
||||
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',
|
||||
@ -2917,6 +2917,10 @@ class EMCVnxCliBase(object):
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user