Previous topic

The cinder.volume.drivers.nexenta.volume Module

Next topic

The cinder.volume.drivers.rbd Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.volume.drivers.nfs Module

class NfsDriver(*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.

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

delete_volume(volume)

Deletes a logical volume.

do_setup(context)

Any initialization the volume driver does while starting

ensure_export(ctx, volume)

Synchronously recreates an export for a logical volume.

get_volume_stats(refresh=False)

Get volume status.

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

initialize_connection(volume, connector)

Allow connection to connector and return connection info.

remove_export(ctx, volume)

Removes an export for a logical volume.

terminate_connection(volume, connector, **kwargs)

Disallow connection from connector

class RemoteFsDriver(execute=<function execute at 0x2a496e0>, *args, **kwargs)

Bases: cinder.volume.driver.VolumeDriver

Common base for drivers that work like NFS.

check_for_setup_error()

Just to override parent behavior.

create_volume(volume)
delete_snapshot(snapshot)

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

delete_volume(volume)
ensure_export(ctx, volume)
local_path(volume)

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