The cinder.volume.drivers.emc.emc_vmax_masking Module

class EMCVMAXMasking(prtcl)

Bases: object

Masking class for SMI-S based EMC volume drivers.

Masking code to dynamically create a masking view This masking class is for EMC volume drivers based on SMI-S. It supports VMAX arrays.

add_volume_to_storage_group(conn, controllerConfigService, storageGroupInstanceName, volumeInstance, volumeName, sgGroupName, fastPolicyName, storageSystemName=None)

Add a volume to an existing storage group

Parameters:
  • conn – connection to ecom server
  • controllerConfigService – the controller configuration service
  • storageGroup – storage group instance
  • volumeInstance – the volume instance
  • volumeName – the name of the volume (String)
  • sgGroupName – the name of the storage group (String)
  • fastPolicyName – the fast policy name (String) can be None
  • storageSystemName – the storage system name (Optional Parameter), if None plain operation assumed
Returns:

int rc the return code of the job

Returns:

dict the job dict

find_new_masking_view(conn, jobDict)

Find the newly created volume

Parameters:
  • conn – the connection to the ecom server
  • jobDict – the job tuple
Returns:

instance maskingViewInstance

get_associated_masking_group_from_device(conn, volumeInstanceName)
get_devices_from_storage_group(conn, storageGroupInstanceName)

Get the associated volume Instance names

Given the storage group instance name get the associated volume Instance names

Parameters:
  • conn – connection the the ecom server
  • storageGroupInstanceName – the storage group instance name
Returns:

list volumeInstanceNames list of volume instance names

get_masking_view_by_volume(conn, volumeInstance)

Given volume, retrieve the masking view instance name.

Parameters:
  • volume – the volume instance
  • mvInstanceName – masking view instance name
get_masking_view_from_storage_group(conn, storageGroupInstanceName)

Get the associated maskingview instance name

Given storage group instance name, get the associated masking view instance name

Parameters:
  • conn – connection the ecom server
  • storageGroupInstanceName – the storage group instance name
Returns:

instance name foundMaskingViewInstanceName

get_masking_views_by_port_group(conn, portGroupInstanceName)

Given port group, retrieve the masking view instance name.

:param : the volume :param mvInstanceName: masking view instance name :returns: maksingViewInstanceNames

get_or_create_masking_view_and_map_lun(conn, maskingViewDict)

Get or Create a masking view.

Given a masking view tuple either get or create a masking view and add the volume to the associated storage group

Parameters:conn – the connection to ecom
Para maskingViewDict:
 the masking view tuple
Returns:dict rollbackDict
get_port_group_from_masking_view(conn, maskingViewInstanceName)

Get the port group in a masking view.

Parameters:maskingViewInstanceName – masking view instance name
Returns:portGroupInstanceName
get_target_wwns(conn, mvInstanceName)

Get the DA ports’ wwns.

Parameters:
  • conn – the ecom connection
  • mvInstanceName – masking view instance name
remove_and_reset_members(conn, controllerConfigService, volumeInstance, fastPolicyName, volumeName)

Part of unmap device or rollback.

Removes volume from the Device Masking Group that belongs to a Masking View. Check if fast policy is in the extra specs, if it isn’t we do not need to do any thing for FAST. Assume that isTieringPolicySupported is False unless the FAST policy is in the extra specs and tiering is enabled on the array

Parameters:
  • conn – connection the the ecom server
  • controllerConfigService – the controller configuration service
  • volumeInstance – the volume Instance
  • fastPolicyName – the fast policy name (if it exists)
  • volumeName – the volume name
Returns:

list volumeInstanceNames list of volume instance names

remove_device_from_default_storage_group(conn, controllerConfigService, volumeInstanceName, volumeName, fastPolicyName)

Remove the volume from the default storage group.

Remove the volume from the default storage group for the FAST policy and return the default storage group instance name

Parameters:
  • conn – the connection to the ecom server
  • controllerConfigService – the controller config service
  • volumeInstanceName – the volume instance name
  • volumeName – the volume name (String)
  • fastPolicyName – the fast policy name (String)
Returns:

instance name defaultStorageGroupInstanceName

Previous topic

The cinder.volume.drivers.emc.emc_vmax_iscsi Module

Next topic

The cinder.volume.drivers.emc.emc_vmax_provision Module

This Page