Previous topic

The cinder.volume.drivers.nfs Module

Next topic

The cinder.volume.drivers.san.hp.hp_3par_common 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.rbd Module

RADOS Block Device Driver

class RBDDriver(*args, **kwargs)

Bases: cinder.volume.driver.VolumeDriver

Implements RADOS block device (RBD) volume commands

check_for_setup_error()

Returns an error if prerequisites aren’t met

clone_image(volume, image_location)
copy_image_to_volume(context, volume, image_service, image_id)
copy_volume_to_image(context, volume, image_service, image_meta)
create_cloned_volume(volume, src_vref)
create_export(context, volume)

Exports the volume

create_snapshot(snapshot)

Creates an rbd snapshot

create_volume(volume)

Creates a logical volume.

create_volume_from_snapshot(volume, snapshot)

Creates a volume from a snapshot.

delete_snapshot(snapshot)

Deletes an rbd snapshot

delete_volume(volume)

Deletes a logical volume.

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

Returns the path of the rbd volume.

remove_export(context, volume)

Removes an export for a logical volume

terminate_connection(volume, connector, **kwargs)