The cinder.volume.drivers.dell_emc.unity.driver Module

Cinder Driver for Unity

class UnityDriver(*args, **kwargs)

Bases: cinder.volume.driver.ManageableVD, cinder.volume.driver.ManageableSnapshotsVD, cinder.volume.driver.BaseVD

Unity Driver.

Version history:

1.0.0 - Initial version (Ocata)
1.0.1 - Fixed bug 170311: temp snapshot for backup was deleted twice
1.0.2 - Fixes bug 1775518 to make sure driver succeed to initialize
        even though the value of unity_io_ports and
        unity_storage_pool_names are empty
1.0.3 - Fixed bug 1741831: corrected support to force detach a volume
        from all its attached hosts.
1.0.4 - Fixes bug 1759175 to detach the lun correctly when auto zone
        was enabled and the lun was the last one attached to the host.
1.0.5 - Fixes bug 1768711 to support remove empty host.
CI_WIKI_NAME = 'EMC_UNITY_CI'
VENDOR = 'Dell EMC'
VERSION = '01.00.05'
backup_use_temp_snapshot()
check_for_export(context, volume_id)

Make sure volume is exported.

check_for_setup_error()
create_cloned_volume(volume, src_vref)

Creates a cloned volume.

create_export(context, volume, connector)

Driver entry point to get the export info for a new volume.

create_export_snapshot(context, snapshot, connector)

Creates the mount point of the snapshot for backup.

Not necessary to create on Unity.

create_snapshot(snapshot)

Creates a snapshot.

create_volume(volume)

Creates a volume.

create_volume_from_snapshot(volume, snapshot)

Creates a volume from a snapshot.

delete_snapshot(snapshot)

Deletes a snapshot.

delete_volume(volume)

Deletes a volume.

do_setup(context)
ensure_export(context, volume)

Driver entry point to get the export info for an existing volume.

extend_volume(volume, new_size)

Extend a volume.

get_pool(volume)

Returns the pool name of a volume.

get_volume_stats(refresh=False)

Get volume stats.

Parameters:refresh – True to get updated data
initialize_connection(*args, **kwargs)
initialize_connection_snapshot(snapshot, connector, **kwargs)
manage_existing(volume, existing_ref)

Manages an existing LUN in the array.

Parameters:
  • volume – the mapping cinder volume of the Unity LUN.
  • existing_ref – the Unity LUN info.
manage_existing_get_size(volume, existing_ref)

Returns size of volume to be managed by manage_existing.

remove_export(context, volume)

Driver entry point to remove an export for a volume.

remove_export_snapshot(context, snapshot)

Deletes the mount point the snapshot for backup.

Not necessary to create on Unity.

terminate_connection(*args, **kwargs)
terminate_connection_snapshot(snapshot, connector, **kwargs)
unmanage(volume)

Unmanages a volume.

update_volume_stats()

Retrieve stats info from volume group.