Skip to content

Commit

Permalink
Merge pull request #16797 from jdurgin/wip-upgrade-jewel-x
Browse files Browse the repository at this point in the history
qa: timeout when waiting for mgr to be available in healthy()

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
jdurgin committed Aug 3, 2017
2 parents 24c5dea + 6369377 commit ae48c75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qa/tasks/ceph.py
Expand Up @@ -1225,9 +1225,9 @@ def healthy(ctx, config):
log.info('Waiting until %s daemons up and pgs clean...', cluster_name)
manager = ctx.managers[cluster_name]
try:
manager.wait_for_mgr_available()
except run.CommandFailedError:
log.info('ignoring mgr wait error, probably testing upgrade')
manager.wait_for_mgr_available(timeout=30)
except (run.CommandFailedError, AssertionError) as e:
log.info('ignoring mgr wait error, probably testing upgrade: %s', e)

firstmon = teuthology.get_first_mon(ctx, config, cluster_name)
(mon0_remote,) = ctx.cluster.only(firstmon).remotes.keys()
Expand Down

0 comments on commit ae48c75

Please sign in to comment.