Previous topic

The cinder.volume.manager Module

Next topic

The cinder.volume.utils 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.rpcapi Module

Client side of the volume RPC API.

class VolumeAPI(topic=None)

Bases: cinder.openstack.common.rpc.proxy.RpcProxy

Client side of the volume rpc API.

API version history:

1.0 - Initial version. 1.1 - Adds clone volume option to create_volume. 1.2 - Add publish_service_capabilities() method. 1.3 - Pass all image metadata (not just ID) in copy_volume_to_image 1.4 - Add request_spec, filter_properties and

allow_reschedule arguments to create_volume().
BASE_RPC_API_VERSION = '1.0'
attach_volume(ctxt, volume, instance_uuid, mountpoint)
copy_volume_to_image(ctxt, volume, image_meta)
create_snapshot(ctxt, volume, snapshot)
create_volume(ctxt, volume, host, request_spec, filter_properties, allow_reschedule=True, snapshot_id=None, image_id=None, source_volid=None)
delete_snapshot(ctxt, snapshot, host)
delete_volume(ctxt, volume)
detach_volume(ctxt, volume)
initialize_connection(ctxt, volume, connector)
publish_service_capabilities(ctxt)
terminate_connection(ctxt, volume, connector, force=False)