Previous topic

The cinder.volume.drivers.san.solaris Module

Next topic

The cinder.volume.drivers.sheepdog 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.scality Module

Scality SOFS Volume Driver.

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

Bases: cinder.volume.driver.VolumeDriver

Scality SOFS cinder driver.

Creates sparse files on SOFS for hypervisors to use as block devices.

attach_volume(context, volume_id, instance_uuid, mountpoint)

Callback for volume attached to instance.

check_for_setup_error()

Returns an error if prerequisites aren’t met.

clone_image(volume, image_location)

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 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.

copy_volume_to_image(context, volume, image_service, image_meta)

Copy the volume to the specified image.

create_export(context, volume)

Exports the volume.

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

create_snapshot(snapshot)

Creates a snapshot.

create_volume(volume)

Creates a logical volume.

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

create_volume_from_snapshot(volume, snapshot)

Creates a volume from a snapshot.

delete_snapshot(snapshot)

Deletes a snapshot.

delete_volume(volume)

Deletes a logical volume.

detach_volume(context, volume_id)

Callback for volume detached.

do_setup(context)

Any initialization the volume driver does while starting.

ensure_export(context, volume)

Synchronously recreates an export for a logical volume.

get_volume_stats(refresh=False)

Return the current state of the volume service.

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

initialize_connection(volume, connector)

Allow connection to connector and return connection info.

local_path(volume)
remove_export(context, volume)

Removes an export for a logical volume.

terminate_connection(volume, connector, force=False, **kwargs)

Disallow connection from connector.