From: Sam Lang Date: Tue, 30 Apr 2013 20:10:35 +0000 (-0500) Subject: nuke.py: Allow ipmi power cycling to be skipped X-Git-Tag: 1.1.0~2159^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=9e6f7b126b1dbaab7c35ae42c59a190b14ba9d8a;p=teuthology.git nuke.py: Allow ipmi power cycling to be skipped Some nodes don't have ipmi setup. Allow nuke to skip the ipmi checking if -i (--noipmi) is specified. Signed-off-by: Sam Lang --- diff --git a/teuthology/nuke.py b/teuthology/nuke.py index 5339e539ca..5ed0662f9c 100644 --- a/teuthology/nuke.py +++ b/teuthology/nuke.py @@ -59,6 +59,11 @@ def parse_args(): metavar='NAME', help='Name of run to cleanup' ) + parser.add_argument( + '-i', '--noipmi', + action='store_true', default=False, + help='Skip ipmi checking' + ) args = parser.parse_args() return args @@ -395,6 +400,7 @@ def nuke_one(ctx, targets, log, should_unlock, synch_clocks, reboot_all, check_l reboot_all=reboot_all, teuthology_config=ctx.teuthology_config, name=ctx.name, + noipmi=ctx.noipmi, ) try: nuke_helper(ctx, log) @@ -416,7 +422,8 @@ def nuke_helper(ctx, log): host = target.split('@')[-1] shortname = host.split('.')[0] log.debug('shortname: %s' % shortname) - if 'ipmi_user' in ctx.teuthology_config: + log.debug('{ctx}'.format(ctx=ctx)) + if not ctx.noipmi and 'ipmi_user' in ctx.teuthology_config: console = remote.RemoteConsole(name=host, ipmiuser=ctx.teuthology_config['ipmi_user'], ipmipass=ctx.teuthology_config['ipmi_password'],