NetApp E-Series: Fix broken generic volume groups

The Generic Volume Groups functionality is currently broken in the
E-Series driver because it is not defining/removing a back-end
consistency group when creating/deleting a generic group.

This patch adds an implementation method in the respective E-Series
drivers to utilize the underlying CG functionality.

Closes-Bug: #1706777
Change-Id: I55dc417060d9226c2f120a16b031a79839d483d3
This commit is contained in:
Michael Price 2017-09-22 15:51:48 -05:00 committed by Michael Price
parent 6c236bca3d
commit 443dfd9d8c
2 changed files with 12 additions and 0 deletions

View File

@ -122,3 +122,9 @@ class NetAppEseriesFibreChannelDriver(driver.BaseVD,
source_cg=None, source_vols=None):
return self.library.create_consistencygroup_from_src(
group, volumes, cgsnapshot, snapshots, source_cg, source_vols)
def create_group(self, context, group):
return self.library.create_consistencygroup(group)
def delete_group(self, context, group, volumes):
return self.library.delete_consistencygroup(group, volumes)

View File

@ -121,3 +121,9 @@ class NetAppEseriesISCSIDriver(driver.BaseVD,
source_cg=None, source_vols=None):
return self.library.create_consistencygroup_from_src(
group, volumes, cgsnapshot, snapshots, source_cg, source_vols)
def create_group(self, context, group):
return self.create_consistencygroup(context, group)
def delete_group(self, context, group, volumes):
return self.library.delete_consistencygroup(group, volumes)