The cinder.volume.drivers.glusterfs Module

class GlusterfsDriver(*args, **kwargs)

Bases: cinder.volume.drivers.nfs.RemoteFsDriver

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.1.0'
check_for_setup_error()

Just to override parent behavior.

copy_volume_to_image(*args, **kwargs)

Copy the volume to the specified image.

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)

Creates a volume from a snapshot.

Snapshot must not be the active snapshot. (offline)

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)
get_active_image_from_info(volume)

Returns filename of the active image from the info file.

initialize_connection(*args, **kwargs)

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.

validate_connector(connector)
volume_backend_name = 'GlusterFS'

Previous topic

The cinder.volume.drivers.eqlx Module

Next topic

The cinder.volume.drivers.gpfs Module

This Page