Skip to content

Commit

Permalink
teuthology/console: allow deferring login after reset
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/37681
Signed-off-by: Patrick Donnelly <[email protected]>
  • Loading branch information
batrick committed Jul 1, 2019
1 parent d0690ad commit e565a6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions teuthology/orchestra/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def power_cycle(self, timeout=300):
self._wait_for_login(timeout=timeout)
log.info('Power cycle for {s} completed'.format(s=self.shortname))

def hard_reset(self):
def hard_reset(self, wait_for_login=True):
"""
Perform physical hard reset. Retry if EOF returned from read
and wait for login when complete.
Expand All @@ -212,7 +212,8 @@ def hard_reset(self):
timeout=self.timeout)
if r == 0:
break
self._wait_for_login()
if wait_for_login:
self._wait_for_login()
log.info('Hard reset for {s} completed'.format(s=self.shortname))

def power_on(self):
Expand Down

0 comments on commit e565a6b

Please sign in to comment.