Script burnin
[hide private]
[frames] | no frames]

Script burnin

Burnin program

Classes [hide private]
  InstanceDown
The checked instance was not up
  BurninFailure
Failure detected during burning
  SimpleOpener
A simple url opener
  Burner
Burner class.
Functions [hide private]
 
Usage()
Shows program usage information and exits the program.
 
Log(msg, *args, **kwargs)
Simple function that prints out its argument.
 
Err(msg, exit_code=1)
Simple error logging that prints to stderr.
 
_DoCheckInstances(fn)
Decorator for checking instances.
 
_DoBatch(retry)
Decorator for possible batch operations.
 
main()
Main function
Variables [hide private]
  USAGE = "\tburnin -o OS_NAME [options...] instance_name ..."
  MAX_RETRIES = 3
  LOG_HEADERS = {0: "- ", 1: "* ", 2: ""}
  OPTIONS = [cli.cli_option("-o", "--os", dest= "os", default= N...
  ARGUMENTS = [cli.ArgInstance(min= 1)]

Imports: sys, optparse, time, socket, urllib, izip, islice, cycle, StringIO, opcodes, constants, cli, errors, utils, hypervisor, compat, confd_client


Function Details [hide private]

_DoBatch(retry)

 

Decorator for possible batch operations.

Must come after the _DoCheckInstances decorator (if any).

Parameters:
  • retry - whether this is a retryable batch, will be passed to StartBatch

Variables Details [hide private]

OPTIONS

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, cli.OSPARAMS_OPT, cli.cli_option("--disk\
-size", dest= "disk_size", help= "Disk size (determines disk count)", \
default= "128m", type= "string", metavar= "<size,size,...>", completio\
n_suggest= ("128M 512M 1G 4G 1G,256M" " 4G,1G,1G 10G").split()), cli.c\
li_option("--disk-growth", dest= "disk_growth", help= "Disk growth", d\
efault= "128m", type= "string", metavar= "<size,size,...>"), cli.cli_o\
...