module documentation

Functions for running helper virtual machines to perform tasks on instances.

Function HelperVM Runs a given helper VM for a given instance.
Function RunWithHelperVM Runs a given helper VM for a given instance.
@contextlib.contextmanager
def HelperVM(lu, instance, vm_image, startup_timeout, vm_timeout, log_prefix=None, feedback_fn=None):

Runs a given helper VM for a given instance.

Parameters
lu:LogicalUnitthe lu on whose behalf we execute
instance:objects.Instancethe instance definition
vm_image:stringthe name of the helper VM image to dump on a temporary disk
startup_timeout:inthow long to wait for the helper VM to start up
vm_timeout:inthow long to wait for the helper VM to finish its work
log_prefix:stringa prefix for all log messages
feedback_fn:functionFunction used to log progress
def RunWithHelperVM(lu, instance, vm_image, startup_timeout, vm_timeout, log_prefix=None, feedback_fn=None):

Runs a given helper VM for a given instance.

Parameters
lu:LogicalUnitthe lu on whose behalf we execute
instance:objects.Instancethe instance definition
vm_image:stringthe name of the helper VM image to dump on a temporary disk
startup_timeout:inthow long to wait for the helper VM to start up
vm_timeout:inthow long to wait for the helper VM to finish its work
log_prefix:stringa prefix for all log messages
feedback_fn:functionFunction used to log progress