cinder.volume.drivers.dell_emc.vmax.masking
Modulecinder.volume.drivers.dell_emc.vmax.masking
Module¶VMAXMasking
(prtcl, rest)¶Bases: object
Masking class for Dell EMC VMAX.
Masking code to dynamically create a masking view. It supports VMAX arrays.
add_child_sg_to_parent_sg
(serial_number, child_sg_name, parent_sg_name, extra_specs, default_version=True)¶Add a child storage group to a parent storage group.
Parameters: |
|
---|
add_volume_to_default_storage_group
(serial_number, device_id, volume_name, extra_specs, src_sg=None)¶Return volume to its default storage group.
Parameters: |
|
---|
add_volume_to_storage_group
(serial_number, device_id, storagegroup_name, volume_name, extra_specs)¶Add a volume to a storage group.
Parameters: |
|
---|
add_volumes_to_storage_group
(serial_number, list_device_id, storagegroup_name, extra_specs)¶Add a volume to a storage group.
Parameters: |
|
---|
check_if_rollback_action_for_masking_required
(serial_number, device_id, rollback_dict)¶Rollback action for volumes with an associated service level.
We need to be able to return the volume to the default storage group if anything has gone wrong. The volume can also potentially belong to a storage group that is not the default depending on where the exception occurred. We also may need to clean up any unused initiator groups. :param serial_number: the array serial number :param device_id: the device id :param rollback_dict: the rollback dict :returns: error message – string, or None :raises: VolumeBackendAPIException
create_masking_view
(serial_number, maskingview_name, storagegroup_name, port_group_name, init_group_name, extra_specs)¶Create a new masking view.
Parameters: |
|
---|---|
Returns: | error_message – string or None |
failed_live_migration
(device_info_dict, source_storage_group_list, extra_specs)¶This is run in the event of a failed live migration operation.
Parameters: |
|
---|
find_initiator_names
(connector)¶Check the connector object for initiators(ISCSI) or wwpns(FC).
Parameters: | connector – the connector object |
---|---|
Returns: | list – list of found initiator names |
Raises: | VolumeBackendAPIException |
get_or_create_default_storage_group
(serial_number, srp, slo, workload, extra_specs, do_disable_compression=False, is_re=False)¶Get or create a default storage group.
Parameters: |
|
---|---|
Returns: | storagegroup_name |
Raises: | VolumeBackendAPIException |
get_or_create_masking_view_and_map_lun
(serial_number, maskingview_name, masking_view_dict, extra_specs)¶Get or Create a masking view and add a volume to the storage group.
Given a masking view dict either get or create a masking view and add the volume to the associated storage group. :param serial_number: the array serial number :param maskingview_name: the masking view name :param masking_view_dict: the masking view dict :param extra_specs: the extra specifications :returns: rollback_dict :raises: VolumeBackendAPIException
get_parent_sg_from_child
(serial_number, storagegroup_name)¶Given a storage group name, get its parent storage group, if any.
Parameters: |
|
---|---|
Returns: | the parent storage group name, or None |
move_volume_between_storage_groups
(serial_number, device_id, source_storagegroup_name, target_storagegroup_name, extra_specs)¶Move a volume between storage groups.
Parameters: |
|
---|
post_live_migration
(device_info_dict, extra_specs)¶Run after every live migration operation.
Parameters: |
|
---|
pre_live_migration
(source_nf_sg, source_sg, source_parent_sg, is_source_nf_sg, device_info_dict, extra_specs)¶Run before any live migration operation.
Parameters: |
|
---|
remove_and_reset_members
(serial_number, device_id, volume_name, extra_specs, reset=True, connector=None)¶This is called on a delete, unmap device or rollback.
Parameters: |
|
---|
remove_vol_from_storage_group
(serial_number, device_id, storagegroup_name, volume_name, extra_specs)¶Remove a volume from a storage group.
Parameters: |
|
---|---|
Raises: | VolumeBackendAPIException |
remove_volume_from_sg
(serial_number, device_id, vol_name, storagegroup_name, extra_specs, connector=None, move=False)¶Remove a volume from a storage group.
Parameters: |
|
---|
remove_volumes_from_storage_group
(serial_number, list_of_device_ids, storagegroup_name, extra_specs)¶Remove multiple volumes from a storage group.
Parameters: |
|
---|---|
Raises: | VolumeBackendAPIException |
setup_masking_view
(serial_number, masking_view_dict, extra_specs)¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.