module documentation
Functions for running helper virtual machines to perform tasks on instances.
Function |
|
Runs a given helper VM for a given instance. |
Function |
|
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): ¶
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:LogicalUnit | the lu on whose behalf we execute |
instance:objects.Instance | the instance definition |
vm | the name of the helper VM image to dump on a temporary disk |
startup | how long to wait for the helper VM to start up |
vm | how long to wait for the helper VM to finish its work |
log | a prefix for all log messages |
feedback | Function 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:LogicalUnit | the lu on whose behalf we execute |
instance:objects.Instance | the instance definition |
vm | the name of the helper VM image to dump on a temporary disk |
startup | how long to wait for the helper VM to start up |
vm | how long to wait for the helper VM to finish its work |
log | a prefix for all log messages |
feedback | Function used to log progress |