mirror of
https://github.com/ceph/ceph
synced 2025-01-29 22:43:40 +00:00
Merge pull request #301 from ceph/wip-nuke-vpm
nuke: allow nuking vpm hosts
This commit is contained in:
commit
f4c953c1fa
@ -387,15 +387,12 @@ def nuke_one(ctx, targets, should_unlock, synch_clocks, reboot_all,
|
||||
|
||||
def nuke_helper(ctx):
|
||||
# ensure node is up with ipmi
|
||||
|
||||
(target,) = ctx.config['targets'].keys()
|
||||
host = target.split('@')[-1]
|
||||
shortname = host.split('.')[0]
|
||||
if 'vpm' in shortname:
|
||||
return
|
||||
log.debug('shortname: %s' % shortname)
|
||||
log.debug('{ctx}'.format(ctx=ctx))
|
||||
if not ctx.noipmi and 'ipmi_user' in ctx.teuthology_config:
|
||||
if not ctx.noipmi and 'ipmi_user' in ctx.teuthology_config and 'vpm' not in shortname:
|
||||
console = orchestra.remote.getRemoteConsole(
|
||||
name=host,
|
||||
ipmiuser=ctx.teuthology_config['ipmi_user'],
|
||||
|
Loading…
Reference in New Issue
Block a user