The cinder.volume.drivers.glusterfs Module

class GlusterfsDriver(execute=<function execute at 0x2b6baeab7758>, *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(context, volume, image_service, image_meta)

Copy the volume to the specified image.

Warning: parameter order is non-standard to assist with locking decorators.

create_cloned_volume(inst, volume, *args, **kwargs)
create_export(ctx, volume)

Exports the volume.

create_snapshot(inst, snapshot, *args, **kwargs)
create_volume(inst, volume, *args, **kwargs)
create_volume_from_snapshot(inst, volume, *args, **kwargs)
delete_snapshot(inst, snapshot, *args, **kwargs)
delete_volume(inst, volume, *args, **kwargs)
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(inst, volume, *args, **kwargs)
initialize_connection(inst, volume, *args, **kwargs)
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'
locked_volume_id_operation(f, external=False)

Lock decorator for volume operations.

Takes a named lock prior to executing the operation. The lock is named with the id of the volume. This lock can then be used by other operations to avoid operation conflicts on shared volumes.

May be applied to methods of signature:
method(<self>, volume, , *)
locked_volume_id_snapshot_operation(f, external=False)

Lock decorator for volume operations that use snapshot objects.

Takes a named lock prior to executing the operation. The lock is named with the id of the volume. This lock can then be used by other operations to avoid operation conflicts on shared volumes.

May be applied to methods of signature:
method(<self>, snapshot, , *)

Previous topic

The cinder.volume.drivers.eqlx Module

Next topic

The cinder.volume.drivers.hds.hds Module

This Page