The cinder.volume.drivers.netapp.iscsi Module

Volume driver for NetApp iSCSI storage systems.

This driver requires NetApp Clustered Data ONTAP or 7-mode storage systems with installed iSCSI licenses.

class NetAppDirect7modeISCSIDriver(*args, **kwargs)

Bases: cinder.volume.drivers.netapp.iscsi.NetAppDirectISCSIDriver

NetApp 7-mode iSCSI volume driver.

check_for_setup_error()

Check that the driver is working and can communicate.

class NetAppDirectCmodeISCSIDriver(*args, **kwargs)

Bases: cinder.volume.drivers.netapp.iscsi.NetAppDirectISCSIDriver

NetApp C-mode iSCSI volume driver.

DEFAULT_VS = 'openstack'
refresh_ssc_vols(*args, **kwargs)

Refreshes ssc_vols with latest entries.

class NetAppDirectISCSIDriver(*args, **kwargs)

Bases: cinder.volume.driver.ISCSIDriver

NetApp Direct iSCSI volume driver.

IGROUP_PREFIX = 'openstack-'
VERSION = '1.0.0'
check_for_setup_error()

Check that the driver is working and can communicate.

Discovers the LUNs on the NetApp server.

create_cloned_volume(volume, src_vref)

Creates a clone of the specified volume.

create_export(context, volume)

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

create_snapshot(snapshot)

Driver entry point for creating a snapshot.

This driver implements snapshots by using efficient single-file (LUN) cloning.

create_volume(volume)

Driver entry point for creating a new volume.

create_volume_from_snapshot(volume, snapshot)

Driver entry point for creating a new volume from a snapshot.

Many would call this “cloning” and in fact we use cloning to implement this feature.

delete_snapshot(snapshot)

Driver entry point for deleting a snapshot.

delete_volume(volume)

Driver entry point for destroying existing volumes.

do_setup(context)

Setup the NetApp Volume driver.

Called one time by the manager after the driver is loaded. Validate the flags we care about and setup NetApp client.

ensure_export(context, volume)

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

extend_volume(volume, new_size)

Extend an existing volume to the new size.

get_volume_stats(refresh=False)

Get volume stats.

If ‘refresh’ is True, run update the stats first.

initialize_connection(volume, connector)

Driver entry point to attach a volume to an instance.

Do the LUN masking on the storage system so the initiator can access the LUN on the target. Also return the iSCSI properties so the initiator can find the LUN. This implementation does not call _get_iscsi_properties() to get the properties because cannot store the LUN number in the database. We only find out what the LUN number will be during this method call so we construct the properties dictionary ourselves.

remove_export(context, volume)

Driver exntry point to remove an export for a volume.

Since exporting is idempotent in this driver, we have nothing to do for unexporting.

required_flags = ['netapp_transport_type', 'netapp_login', 'netapp_password', 'netapp_server_hostname', 'netapp_server_port']
terminate_connection(volume, connector, **kwargs)

Driver entry point to unattach a volume from an instance.

Unmask the LUN on the storage system so the given intiator can no longer access it.

class NetAppLun(handle, name, size, metadata_dict)

Bases: object

Represents a LUN on NetApp storage.

get_metadata_property(prop)

Get the metadata property of a LUN.

Previous topic

The cinder.volume.drivers.netapp.common Module

Next topic

The cinder.volume.drivers.netapp.nfs Module

This Page