The cinder.volume.drivers.netapp.nfs Module

Volume driver for NetApp NFS storage.

class NetAppDirect7modeNfsDriver(*args, **kwargs)

Bases: cinder.volume.drivers.netapp.nfs.NetAppDirectNfsDriver

Executes commands related to volumes on 7 mode.

check_for_setup_error()

Checks if setup occurred properly.

create_volume(volume)

Creates a volume.

Parameters:volume – volume reference
class NetAppDirectCmodeNfsDriver(*args, **kwargs)

Bases: cinder.volume.drivers.netapp.nfs.NetAppDirectNfsDriver

Executes commands related to volumes on c mode.

check_for_setup_error()

Check that the driver is working and can communicate.

copy_image_to_volume(context, volume, image_service, image_id)

Fetch the image from image_service and write it to the volume.

create_volume(volume)

Creates a volume.

Parameters:volume – volume reference
delete_snapshot(snapshot)

Deletes a snapshot.

delete_volume(volume)

Deletes a logical volume.

refresh_ssc_vols(*args, **kwargs)

Refreshes ssc_vols with latest entries.

class NetAppDirectNfsDriver(*args, **kwargs)

Bases: cinder.volume.drivers.netapp.nfs.NetAppNFSDriver

Executes commands related to volumes on NetApp filer.

check_for_setup_error()

Returns an error if prerequisites aren’t met.

do_setup(context)
class NetAppNFSDriver(*args, **kwargs)

Bases: cinder.volume.drivers.nfs.NfsDriver

Base class for NetApp NFS driver. Executes commands relating to Volumes.

VERSION = '1.0.0'
check_for_setup_error()

Returns an error if prerequisites aren’t met.

clone_image(volume, image_location, image_id, image_meta)

Create a volume efficiently from an existing image.

image_location is a string whose format depends on the image service backend in use. The driver should use it to determine whether cloning is possible.

image_id is a string which represents id of the image. It can be used by the driver to introspect internal stores or registry to do an efficient image clone.

Returns a dict of volume properties eg. provider_location, boolean indicating whether cloning occurred.

copy_image_to_volume(context, volume, image_service, image_id)

Fetch the image from image_service and write it to the volume.

create_cloned_volume(volume, src_vref)

Creates a clone of the specified volume.

create_snapshot(snapshot)

Creates a snapshot.

create_volume_from_snapshot(volume, snapshot)

Creates a volume from a snapshot.

delete_snapshot(snapshot)

Deletes a snapshot.

do_setup(context)
extend_volume(volume, new_size)

Extend an existing volume to the new size.

get_pool(volume)

Return pool name where volume resides.

Parameters:volume – The volume hosted by the driver.
Returns:Name of the pool where given volume is hosted.
set_execute(execute)

Previous topic

The cinder.volume.drivers.netapp.iscsi Module

Next topic

The cinder.volume.drivers.netapp.options Module

This Page