module documentation

Burnin program

Class Burner Burner class.
Class FeedbackAccumulator Feedback accumulator class.
Class JobHandler Class for handling Ganeti jobs.
Class SimpleOpener A simple url opener
Exception BurninFailure Failure detected during burning
Exception InstanceDown The checked instance was not up
Function Err Simple error logging that prints to stderr.
Function Log Simple function that prints out its argument.
Function Main Main function.
Function RandomString Undocumented
Function Usage Shows program usage information and exits the program.
Constant ARGUMENTS Undocumented
Constant LOG_HEADERS Undocumented
Constant MAX_RETRIES Undocumented
Constant OPTIONS Undocumented
Constant USAGE Undocumented
Function _DoBatch Decorator for possible batch operations.
Function _DoCheckInstances Decorator for checking instances.
Constant _IMPEXP_DISK_TEMPLATES Undocumented
Constant _SINGLE_NODE_DISK_TEMPLATES Undocumented
Constant _SUPPORTED_DISK_TEMPLATES Undocumented
def Err(msg, exit_code=1):

Simple error logging that prints to stderr.

def Log(msg, *args, **kwargs):

Simple function that prints out its argument.

def Main():

Main function.

def RandomString(size=8, chars=string.ascii_uppercase+string.digits):

Undocumented

def Usage():

Shows program usage information and exits the program.

ARGUMENTS =

Undocumented

Value
[cli.ArgInstance(min=1)]
LOG_HEADERS: dict[int, str] =

Undocumented

Value
{0: '- ', 1: '* ', 2: ''}
MAX_RETRIES: int =

Undocumented

Value
3
OPTIONS =

Undocumented

Value
[cli.cli_option('-o', '--os',
                dest='os',
                default=None,
                help='OS to use during burnin',
                metavar='<OS>',
                completion_suggest=cli.OPT_COMPL_ONE_OS),
 cli.HYPERVISOR_OPT,
...
USAGE: str =

Undocumented

Value
'\tburnin -o OS_NAME [options...] instance_name ...'
def _DoBatch(retry):

Decorator for possible batch operations.

Must come after the _DoCheckInstances decorator (if any).

Parameters
retrywhether this is a retryable batch, will be passed to StartBatch
def _DoCheckInstances(fn):

Decorator for checking instances.