"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "cinder/volume/drivers/dell_emc/powermax/rest.py" between
cinder-15.0.1.tar.gz and cinder-15.1.0.tar.gz

About: OpenStack Cinder (Core Service: Block Storage) provides persistent block storage to running instances. Its pluggable driver architecture facilitates the creation and management of block storage devices.
The "Train" series (latest release).

rest.py  (cinder-15.0.1):rest.py  (cinder-15.1.0)
skipping to change at line 2463 skipping to change at line 2463
:param extra_specs: the extra specifications :param extra_specs: the extra specifications
""" """
payload = {"snapshotName": snap_name} payload = {"snapshotName": snap_name}
resource_type = ('storagegroup/%(sg_name)s/snapshot' resource_type = ('storagegroup/%(sg_name)s/snapshot'
% {'sg_name': source_group}) % {'sg_name': source_group})
status_code, job = self.create_resource( status_code, job = self.create_resource(
array, REPLICATION, resource_type, payload) array, REPLICATION, resource_type, payload)
self.wait_for_job('Create storage group snapVx', status_code, self.wait_for_job('Create storage group snapVx', status_code,
job, extra_specs) job, extra_specs)
def delete_storagegroup_snap(self, array, source_group,
snap_name, generation='0'):
"""Delete a snapVx snapshot of a storage group.
:param array: the array serial number
:param source_group: the source group name
:param snap_name: the name of the snapshot
:param generation: the generation number of the SnapVX
"""
resource_name = ("%(sg_name)s/snapshot/%(snap_name)s"
"/generation/%(generation)s"
% {'sg_name': source_group, 'snap_name': snap_name,
'generation': generation})
self.delete_resource(
array, REPLICATION, 'storagegroup', resource_name=resource_name)
def get_storagegroup_snap_generation_list(
self, array, source_group, snap_name):
"""Get a snapshot and its generation count information for an sg.
The most recent snapshot will have a gen number of 0. The oldest
snapshot will have a gen number = genCount - 1 (i.e. if there are 4
generations of particular snapshot, the oldest will have a gen num of
3).
:param array: name of the array -- str
:param source_group: name of the storage group -- str
:param snap_name: the name of the snapshot -- str
:returns: generation numbers -- list
"""
resource_name = ("%(sg_name)s/snapshot/%(snap_name)s/generation"
% {'sg_name': source_group, 'snap_name': snap_name})
response = self.get_resource(array, REPLICATION, 'storagegroup',
resource_name=resource_name)
return response.get('generations', list()) if response else list()
def get_storagegroup_rdf_details(self, array, storagegroup_name, def get_storagegroup_rdf_details(self, array, storagegroup_name,
rdf_group_num): rdf_group_num):
"""Get the remote replication details of a storage group. """Get the remote replication details of a storage group.
:param array: the array serial number :param array: the array serial number
:param storagegroup_name: the storage group name :param storagegroup_name: the storage group name
:param rdf_group_num: the rdf group number :param rdf_group_num: the rdf group number
""" """
resource_name = ("%(sg_name)s/rdf_group/%(rdf_num)s" resource_name = ("%(sg_name)s/rdf_group/%(rdf_num)s"
% {'sg_name': storagegroup_name, % {'sg_name': storagegroup_name,
 End of changes. 1 change blocks. 
0 lines changed or deleted 37 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)