The nova.virt.xenapi.client.session Module

class XenAPISession(url, user, pw)

Bases: object

The session to invoke XenAPI SDK calls.

PLUGIN_REQUIRED_VERSION = '1.3'
call_plugin(plugin, fn, args)

Call host.call_plugin on a background thread.

call_plugin_serialized(plugin, fn, *args, **kwargs)
call_plugin_serialized_with_retry(plugin, fn, num_retries, callback, retry_cb=None, *args, **kwargs)

Allows a plugin to raise RetryableError so we can try again.

call_xenapi(method, *args)

Call the specified XenAPI method on a background thread.

get_all_refs_and_recs(record_type)

Retrieve all refs and recs for a Xen record type.

Handles race-conditions where the record may be deleted between the get_all call and the get_record call.

get_rec(record_type, ref)
get_session_id()

Return a string session_id. Used for vnc consoles.

apply_session_helpers(session)

Previous topic

The nova.virt.xenapi.client.objects Module

Next topic

The nova.virt.xenapi.driver Module

Project Source

This Page