From 544ca43bbb22ee8bc391b5805823b963c327a325 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Mon, 14 Dec 2009 18:07:05 +0100 Subject: [PATCH] burnin: add --no-name-check support This patch modifies burnin to accept the --no-name-check option and also adds --no-ip-check (which was always set to True before). Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Guido Trotter <ultrotter@google.com> --- tools/burnin | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/burnin b/tools/burnin index c442957a0..8b350585c 100755 --- a/tools/burnin +++ b/tools/burnin @@ -115,6 +115,8 @@ OPTIONS = [ completion_suggest=("128M 256M 512M 1G 4G 8G" " 12G 16G").split()), cli.VERBOSE_OPT, + cli.NOIPCHECK_OPT, + cli.NONAMECHECK_OPT, cli.cli_option("--no-replace1", dest="do_replace1", help="Skip disk replacement with the same secondary", action="store_false", default=True), @@ -422,6 +424,9 @@ class Burner(object): if options.nodes and options.iallocator: Err("Give either the nodes option or the iallocator option, not both") + if options.http_check and not options.name_check: + Err("Can't enable HTTP checks without name checks") + self.opts = options self.instances = args self.bep = { @@ -498,7 +503,8 @@ class Burner(object): pnode=pnode, snode=snode, start=True, - ip_check=True, + ip_check=self.opts.ip_check, + name_check=self.opts.name_check, wait_for_sync=True, file_driver="loop", file_storage_dir=None, @@ -648,7 +654,8 @@ class Burner(object): pnode=pnode, snode=snode, start=True, - ip_check=True, + ip_check=self.opts.ip_check, + name_check=self.opts.name_check, wait_for_sync=True, file_storage_dir=None, file_driver="loop", -- GitLab