Skip to content
Snippets Groups Projects
Commit 8178b322 authored by Iustin Pop's avatar Iustin Pop
Browse files

Add a QA option to disable reboots during burnin


Since we have seen cases where (repeated) reboots are not supported
(e.g. Xen 3.4+), we need to be able to control this in the QA
configuration.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 1d4c743d
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,8 @@ ...@@ -95,7 +95,8 @@
"burnin-disk-template": "drbd", "burnin-disk-template": "drbd",
"burnin-in-parallel": false, "burnin-in-parallel": false,
"burnin-check-instances": false, "burnin-check-instances": false,
"burnin-rename": "xen-test-rename" "burnin-rename": "xen-test-rename",
"burnin-reboot": true
}, },
"# vim: set syntax=javascript :": null "# vim: set syntax=javascript :": null
......
...@@ -231,6 +231,7 @@ def TestClusterBurnin(): ...@@ -231,6 +231,7 @@ def TestClusterBurnin():
parallel = options.get('burnin-in-parallel', False) parallel = options.get('burnin-in-parallel', False)
check_inst = options.get('burnin-check-instances', False) check_inst = options.get('burnin-check-instances', False)
do_rename = options.get('burnin-rename', '') do_rename = options.get('burnin-rename', '')
do_reboot = options.get('burnin-reboot', True)
# Get as many instances as we need # Get as many instances as we need
instances = [] instances = []
...@@ -260,6 +261,8 @@ def TestClusterBurnin(): ...@@ -260,6 +261,8 @@ def TestClusterBurnin():
cmd.append('--http-check') cmd.append('--http-check')
if do_rename: if do_rename:
cmd.append('--rename=%s' % do_rename) cmd.append('--rename=%s' % do_rename)
if not do_reboot:
cmd.append('--no-reboot')
cmd += [inst['name'] for inst in instances] cmd += [inst['name'] for inst in instances]
AssertEqual(StartSSH(master['primary'], AssertEqual(StartSSH(master['primary'],
utils.ShellQuoteArgs(cmd)).wait(), 0) utils.ShellQuoteArgs(cmd)).wait(), 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment