The cinder.volume.drivers.netapp.dataontap.nfs_base Module

The cinder.volume.drivers.netapp.dataontap.nfs_base Module

Volume driver for NetApp NFS storage.

class NetAppNfsDriver(*args, **kwargs)

Bases: cinder.volume.driver.ManageableVD, cinder.volume.driver.CloneableImageVD, cinder.volume.drivers.nfs.NfsDriver

Base class for NetApp NFS driver for Data ONTAP.

DEFAULT_FILTER_FUNCTION = 'capabilities.utilization < 70'
DEFAULT_GOODNESS_FUNCTION = '100 - capabilities.utilization'
REQUIRED_FLAGS = ['netapp_login', 'netapp_password', 'netapp_server_hostname']
VERSION = '1.0.0'
check_for_setup_error(*args, **kwargs)

Returns an error if prerequisites aren’t met.

clone_image(*args, **kwargs)

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.

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

copy_image_to_volume(*args, **kwargs)

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

create_cloned_volume(*args, **kwargs)

Creates a clone of the specified volume.

create_snapshot(*args, **kwargs)

Creates a snapshot.

create_volume(*args, **kwargs)

Creates a volume.

Parameters:volume – volume reference
create_volume_from_snapshot(*args, **kwargs)

Creates a volume from a snapshot.

delete_snapshot(*args, **kwargs)

Deletes a snapshot.

do_setup(*args, **kwargs)
extend_volume(*args, **kwargs)

Extend an existing volume to the new size.

get_default_filter_function(*args, **kwargs)

Get the default filter_function string.

get_default_goodness_function(*args, **kwargs)

Get the default goodness_function string.

get_pool(*args, **kwargs)

Return pool name where volume resides.

Parameters:volume – The volume hosted by the driver.
Returns:Name of the pool where given volume is hosted.
manage_existing(*args, **kwargs)

Manages an existing volume.

The specified Cinder volume is to be taken into Cinder management. The driver will verify its existence and then rename it to the new Cinder volume name. It is expected that the existing volume reference is an NFS share point and some [/path]/volume; e.g., or

  • volume – Cinder volume to manage
  • existing_vol_ref – Driver-specific information used to identify a volume
manage_existing_get_size(*args, **kwargs)

Returns the size of volume to be managed by manage_existing.

When calculating the size, round up to the next GB.

  • volume – Cinder volume to manage
  • existing_vol_ref – Existing volume to take under management
unmanage(*args, **kwargs)

Removes the specified volume from Cinder management.

Does not delete the underlying backend storage object. A log entry will be made to notify the Admin that the volume is no longer being managed.

Parameters:volume – Cinder volume to unmanage
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.