The cinder.volume.drivers.nfs Module

class NfsDriver(execute=<function execute at 0x7fa9e7fe7410>, *args, **kwargs)

Bases: cinder.volume.drivers.nfs.RemoteFsDriver

NFS based cinder driver. Creates file on NFS share for using it as block device on hypervisor.

VERSION = '1.1.0'
do_setup(context)

Any initialization the volume driver does while starting.

driver_prefix = 'nfs'
driver_volume_type = 'nfs'
set_execute(execute)
volume_backend_name = 'Generic_NFS'
class RemoteFsDriver(*args, **kwargs)

Bases: cinder.volume.driver.VolumeDriver

Common base for drivers that work like NFS.

VERSION = '0.0.0'
check_for_setup_error()

Just to override parent behavior.

copy_image_to_volume(context, volume, image_service, image_id)

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

copy_volume_to_image(context, volume, image_service, image_meta)

Copy the volume to the specified image.

create_cloned_volume(volume, src_vref)
create_export(ctx, volume)

Exports the volume. Can optionally return a Dictionary of changes to the volume object to be persisted.

create_volume(volume)

Creates a volume.

Parameters:volume – volume reference
delete_snapshot(snapshot)

Do nothing for this driver, but allow manager to handle deletion of snapshot in error state.

delete_volume(volume)

Deletes a logical volume.

Parameters:volume – volume reference
ensure_export(ctx, volume)

Synchronously recreates an export for a logical volume.

get_volume_stats(refresh=False)

Get volume stats.

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

initialize_connection(volume, connector)

Allow connection to connector and return connection info.

Parameters:
  • volume – volume reference
  • connector – connector reference
local_path(volume)

Get volume path (mounted locally fs path) for given volume :param volume: volume reference

remove_export(ctx, volume)

Removes an export for a logical volume.

terminate_connection(volume, connector, **kwargs)

Disallow connection from connector.

Previous topic

The cinder.volume.drivers.nexenta.utils Module

Next topic

The cinder.volume.drivers.rbd Module

This Page