The cinder.volume.drivers.remotefs Module

class RemoteFSDriver(*args, **kwargs)

Bases: cinder.volume.driver.VolumeDriver

Common base for drivers that work like NFS.

SHARE_FORMAT_REGEX = '.+:/.+'
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
driver_prefix = None
driver_volume_type = None
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.

volume_backend_name = None
class RemoteFSSnapDriver(*args, **kwargs)

Bases: cinder.volume.drivers.remotefs.RemoteFSDriver

Base class for remotefs drivers implementing qcow2 snapshots.

Driver must implement:
_local_volume_dir(self, volume)
get_active_image_from_info(volume)

Returns filename of the active image from the info file.

Previous topic

The cinder.volume.drivers.rbd Module

Next topic

The cinder.volume.drivers.san.hp.hp_3par_common Module

This Page