Report create_share_from_snapshot_support
Set create_share_from_snapshot_support as True in order to be able to create share from snapshot. This fixes all Dell EMC drivers issue like below: Share cannot be created from snapshot Change-Id: If43d9b15b21a2ae74c6872726e9e537501697405 Closes-Bug: #1652911
This commit is contained in:
parent
f427dfe00b
commit
c341e52b5e
manila
@ -140,7 +140,9 @@ class EMCShareDriver(driver.ShareDriver):
|
||||
data = dict(
|
||||
share_backend_name=backend_name,
|
||||
vendor_name='Dell EMC',
|
||||
storage_protocol='NFS_CIFS')
|
||||
storage_protocol='NFS_CIFS',
|
||||
snapshot_support=True,
|
||||
create_share_from_snapshot_support=True)
|
||||
self.plugin.update_share_stats(data)
|
||||
super(EMCShareDriver, self)._update_share_stats(data)
|
||||
|
||||
|
@ -128,6 +128,8 @@ class EMCShareFrameworkTestCase(test.TestCase):
|
||||
data['replication_domain'] = None
|
||||
data['filter_function'] = None
|
||||
data['goodness_function'] = None
|
||||
data['snapshot_support'] = True
|
||||
data['create_share_from_snapshot_support'] = True
|
||||
self.assertEqual(data, self.driver._stats)
|
||||
|
||||
def _fake_safe_get(self, value):
|
||||
|
Loading…
x
Reference in New Issue
Block a user