The cinder.volume.drivers.xenapi.lib Module

class CompoundOperations

Bases: object

create_new_vdi(sr_ref, size_in_gigabytes)
unplug_pbds_and_forget_sr(sr_ref)
unplug_pbds_from_sr(sr_ref)
class ContextAwareSession(session, exception_to_convert)

Bases: cinder.volume.drivers.xenapi.lib.XenAPISession

class GlancePluginProxy(session_factory)

Bases: cinder.volume.drivers.xenapi.lib.XapiPluginProxy

download_vhd(image_id, glance_host, glance_port, glance_use_ssl, uuid_stack, sr_path, auth_token)
upload_vhd(vdi_uuids, image_id, glance_host, glance_port, glance_use_ssl, sr_path, auth_token, properties)
class HostOperations(xenapi_session)

Bases: cinder.volume.drivers.xenapi.lib.OperationsBase

get_record(host_ref)
get_uuid(host_ref)
class NFSBasedVolumeOperations(session_factory)

Bases: object

connect_volume(server, serverpath, sr_uuid, vdi_uuid)
copy_volume(server, serverpath, sr_uuid, vdi_uuid, name=None, description=None)
create_volume(server, serverpath, size, name=None, description=None)
delete_volume(server, serverpath, sr_uuid, vdi_uuid)
disconnect_volume(vdi_uuid)
resize_volume(server, serverpath, sr_uuid, vdi_uuid, size_in_gigabytes)
use_glance_plugin_to_overwrite_volume(server, serverpath, sr_uuid, vdi_uuid, glance_server, image_id, auth_token, sr_base_path)
use_glance_plugin_to_upload_volume(server, serverpath, sr_uuid, vdi_uuid, glance_server, image_id, auth_token, sr_base_path)
volume_attached_here(*args, **kwds)
class NFSOperationsMixIn

Bases: cinder.volume.drivers.xenapi.lib.CompoundOperations

connect_volume(server, serverpath, sr_uuid, vdi_uuid)
copy_vdi_to_sr(vdi_ref, sr_ref)
is_nfs_sr(sr_ref)
new_sr_on_nfs(*args, **kwds)
plug_nfs_sr(host_ref, server, serverpath, sr_uuid, name_label=None, name_description=None)
class OpenStackXenAPISession(session, exception_to_convert)

Bases: cinder.volume.drivers.xenapi.lib.ContextAwareSession, cinder.volume.drivers.xenapi.lib.NFSOperationsMixIn

class OperationsBase(xenapi_session)

Bases: object

call_xenapi(method, *args)
class PbdOperations(xenapi_session)

Bases: cinder.volume.drivers.xenapi.lib.OperationsBase

create(host_ref, sr_ref, device_config)
get_all()
plug(pbd_ref)
unplug(pbd_ref)
class PoolOperations(xenapi_session)

Bases: cinder.volume.drivers.xenapi.lib.OperationsBase

get_all()
get_default_SR(pool_ref)
class SessionFactory(url, user, password)

Bases: object

get_session()
class SrOperations(xenapi_session)

Bases: cinder.volume.drivers.xenapi.lib.OperationsBase

create(host_ref, device_config, name_label, name_description, sr_type, physical_size=None, content_type=None, shared=False, sm_config=None)
destroy(sr_ref)
forget(sr_ref)
get_all()
get_name_description(sr_ref)
get_name_label(sr_ref)
get_record(sr_ref)
get_uuid(sr_ref)
introduce(sr_uuid, name_label, name_description, sr_type, content_type=None, shared=False, sm_config=None)
scan(sr_ref)
class VBDOperations(xenapi_session)

Bases: cinder.volume.drivers.xenapi.lib.OperationsBase

create(vm_ref, vdi_ref, userdevice, bootable, mode, type, empty, other_config)
destroy(vbd_ref)
get_device(vbd_ref)
get_vdi(vbd_ref)
plug(vbd_ref)
unplug(vbd_ref)
class VMOperations(xenapi_session)

Bases: cinder.volume.drivers.xenapi.lib.OperationsBase

get_by_uuid(vm_uuid)
get_vbds(vm_uuid)
class VdiOperations(xenapi_session)

Bases: cinder.volume.drivers.xenapi.lib.OperationsBase

copy(vdi_ref, sr_ref)
create(sr_ref, size, vdi_type, sharable=False, read_only=False, other_config=None)
destroy(vdi_ref)
get_all()
get_by_uuid(vdi_uuid)
get_record(vdi_ref)
get_uuid(vdi_ref)
resize(vdi_ref, size)
class XapiPluginProxy(session_factory, plugin_name)

Bases: object

call(function, *plugin_args, **plugin_kwargs)
exception XenAPIException(original_exception)

Bases: exceptions.Exception

class XenAPISession(session, exception_to_convert)

Bases: object

call_plugin(host_ref, plugin, function, args)
call_xenapi(method, *args)
close()
exception_converter(*args, **kwds)
get_pool()
get_this_host()
connect(url, user, password)
to_bytes(size_in_gigs)

Previous topic

The cinder.volume.drivers.windows.windows_utils Module

Next topic

The cinder.volume.drivers.xenapi.sm Module

This Page