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

class UnityClient(host, username, password, verify_cert=True)

Bases: object

static attach(host, lun_or_snap)

Attaches a UnityLun or UnitySnap to a UnityHost.

Parameters:
  • hostUnityHost object
  • lun_or_snapUnityLun or UnitySnap object
Returns:

hlu

create_host(name, uids)

Creates a host on Unity.

Creates a host on Unity which has the uids associated.

Parameters:
  • name – name of the host
  • uids – iqns or wwns list
Returns:

UnitHost object

create_io_limit_policy(name, max_iops=None, max_kbps=None)
create_lun(name, size, pool, description=None, io_limit_policy=None)

Creates LUN on the Unity system.

Parameters:
  • name – lun name
  • size – lun size in GiB
  • pool – UnityPool object represent to pool to place the lun
  • description – lun description
  • io_limit_policy – io limit on the LUN
Returns:

UnityLun object

create_snap(src_lun_id, name=None)

Creates a snapshot of LUN on the Unity system.

Parameters:
  • src_lun_id – the source LUN ID of the snapshot.
  • name – the name of the snapshot. The Unity system will give one if name is None.
delete_lun(lun_id)

Deletes LUN on the Unity system.

Parameters:lun_id – id of the LUN
static delete_snap(snap)
static detach(host, lun_or_snap)

Detaches a UnityLun or UnitySnap from a UnityHost.

Parameters:
  • hostUnityHost object
  • lun_or_snapUnityLun object
extend_lun(lun_id, size_gib)
get_ethernet_ports()
get_fc_ports()
get_fc_target_info(host=None, logged_in_only=False, allowed_ports=None)

Get the ports WWN of FC on array.

Parameters:
  • host – the host to which the FC port is registered.
  • logged_in_only – whether to retrieve only the logged-in port.
Returns:

the WWN of FC ports. For example, the FC WWN on array is like: 50:06:01:60:89:20:09:25:50:06:01:6C:09:20:09:25. This function removes the colons and returns the last 16 bits: 5006016C09200925.

get_host(name)
static get_host_initiator_ids(host)
get_io_limit_policy(qos_specs)
get_iscsi_target_info(allowed_ports=None)
get_lun(lun_id=None, name=None)

Gets LUN on the Unity system.

Parameters:
  • lun_id – id of the LUN
  • name – name of the LUN
Returns:

UnityLun object

get_pool_name(lun_name)
get_pools()

Gets all storage pools on the Unity system.

Returns:list of UnityPool object
get_serial()
get_snap(name=None)
system