cmd.append('--bridge=%s' % bridge)
cmd.append('--master-netdev=%s' % bridge)
- htype = qa_config.get('hypervisor-type', None)
+ htype = qa_config.get('default-hypervisor', None)
if htype:
- cmd.append('--hypervisor-type=%s' % htype)
+ cmd.append('--default-hypervisor=%s' % htype)
cmd.append(qa_config.get('name'))
"""Burnin"""
master = qa_config.GetMasterNode()
- disk_template = (qa_config.get('options', {}).
- get('burnin-disk-template', 'drbd'))
+ options = qa_config.get('options', {})
+ disk_template = options.get('burnin-disk-template', 'drbd')
+ parallel = options.get('burnin-in-parallel', False)
+ check_inst = options.get('burnin-check-instances', False)
+ do_rename = options.get('burnin-rename', '')
# Get as many instances as we need
instances = []
try:
# Run burnin
cmd = [script,
+ '-p',
'--os=%s' % qa_config.get('os'),
- '--os-size=%s' % qa_config.get('os-size'),
- '--swap-size=%s' % qa_config.get('swap-size'),
+ '--disk-size=%s' % ",".join(qa_config.get('disk')),
+ '--disk-growth=%s' % ",".join(qa_config.get('disk-growth')),
'--disk-template=%s' % disk_template]
+ if parallel:
+ cmd.append('--parallel')
+ if check_inst:
+ cmd.append('--http-check')
+ if do_rename:
+ cmd.append('--rename=%s' % do_rename)
cmd += [inst['name'] for inst in instances]
AssertEqual(StartSSH(master['primary'],
utils.ShellQuoteArgs(cmd)).wait(), 0)