The cinder.volume.drivers.glusterfs Module

class GlusterfsDriver(execute=<function execute at 0x25bd320>, *args, **kwargs)

Bases: cinder.volume.drivers.remotefs.RemoteFSSnapDriver

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

Operations such as create/delete/extend volume/snapshot use locking on a per-process basis to prevent multiple threads from modifying qcow2 chains or the snapshot .info file simultaneously.

VERSION = '1.2.0'
backup_volume(context, backup, backup_service)

Create a new backup from an existing volume.

Allow a backup to occur only if no snapshots exist. Check both Cinder and the file on-disk. The latter is only a safety mechanism to prevent further damage if the snapshot information is already inconsistent.

check_for_setup_error()

Just to override parent behavior.

copy_volume_to_image(*args, **kwargs)
create_cloned_volume(*args, **kwargs)

Creates a clone of the specified volume.

create_export(ctx, volume)

Exports the volume.

create_snapshot(*args, **kwargs)

Apply locking to the create snapshot operation.

create_volume(*args, **kwargs)

Creates a volume.

create_volume_from_snapshot(*args, **kwargs)
delete_snapshot(*args, **kwargs)

Apply locking to the delete snapshot operation.

delete_volume(*args, **kwargs)

Deletes a logical volume.

do_setup(context)

Any initialization the volume driver does while starting.

driver_prefix = 'glusterfs'
driver_volume_type = 'glusterfs'
ensure_export(ctx, volume)

Synchronously recreates an export for a logical volume.

extend_volume(*args, **kwargs)
initialize_connection(*args, **kwargs)

Allow connection to connector and return connection info.

remove_export(ctx, volume)

Removes an export for a logical volume.

set_execute(execute)
terminate_connection(volume, connector, **kwargs)

Disallow connection from connector.

validate_connector(connector)
volume_backend_name = 'GlusterFS'

Previous topic

The cinder.volume.drivers.fusionio.ioControl Module

Next topic

The cinder.volume.drivers.hds.hds Module

This Page