cinder.volume.targets.lio module

class LioAdm(*args, **kwargs)

Bases: ISCSITarget

iSCSI target administration for LIO using python-rtslib.

create_iscsi_target(name, tid, lun, path, chap_auth=None, **kwargs)
ensure_export(context, volume, volume_path)

Recreate exports for logical volumes.

initialize_connection(volume, connector)

Initializes the connection and returns connection info.

The iscsi driver returns a driver_volume_type of ‘iscsi’. The format of the driver data is defined in _get_iscsi_properties. Example return value:

    'driver_volume_type': 'iscsi'
    'data': {
        'target_discovered': True,
        'target_iqn': '',
        'target_portal': '',
        'volume_id': '9a0d35d0-175a-11e4-8c21-0800200c9a66',
        'discard': False,
remove_iscsi_target(tid, lun, vol_id, vol_name, **kwargs)
terminate_connection(volume, connector, **kwargs)

Disallow connection from connector.