+ 'submit-job': (GenericOpCodes, ARGS_ONE,
+ [DEBUG_OPT,
+ ],
+ "<op_list_file>", "Submits a job built from a json-file"
+ " with a list of serialized opcodes"),
+ 'allocator': (TestAllocator, ARGS_ONE,
+ [DEBUG_OPT,
+ make_option("--dir", dest="direction",
+ default="in", choices=["in", "out"],
+ help="Show allocator input (in) or allocator"
+ " results (out)"),
+ make_option("--algorithm", dest="allocator",
+ default=None,
+ help="Allocator algorithm name"),
+ make_option("-m", "--mode", default="relocate",
+ choices=["relocate", "allocate"],
+ help="Request mode, either allocate or"
+ " relocate"),
+ cli_option("--mem", default=128, type="unit",
+ help="Memory size for the instance (MiB)"),
+ make_option("--disks", default="4096,4096",
+ help="Comma separated list of disk sizes (MiB)"),
+ make_option("-t", "--disk-template", default="drbd",
+ help="Select the disk template"),
+ make_option("--nics", default="00:11:22:33:44:55",
+ help="Comma separated list of nics, each nic"
+ " definition is of form mac/ip/bridge, if"
+ " missing values are replace by None"),
+ make_option("-o", "--os-type", default=None,
+ help="Select os for the instance"),
+ make_option("-p", "--vcpus", default=1, type="int",
+ help="Select number of VCPUs for the instance"),
+ make_option("--tags", default=None,
+ help="Comma separated list of tags"),
+ ],
+ "{opts...} <instance>", "Executes a TestAllocator OpCode"),