:param timeout: timeout value for get_stuck_pgs calls
"""
inactive = manager.get_stuck_pgs('inactive', timeout)
- assert len(inactive) == num_inactive
unclean = manager.get_stuck_pgs('unclean', timeout)
- assert len(unclean) == num_unclean
stale = manager.get_stuck_pgs('stale', timeout)
+ log.info('hi mom')
+ log.info('inactive %s / %d, unclean %s / %d, stale %s / %d',
+ len(inactive), num_inactive,
+ len(unclean), num_unclean,
+ len(stale), num_stale)
+ assert len(inactive) == num_inactive
+ assert len(unclean) == num_unclean
assert len(stale) == num_stale
# check health output as well
num_stale=0,
)
+ log.info('stopping both osds')
for id_ in teuthology.all_roles_of_type(ctx.cluster, 'osd'):
manager.kill_osd(id_)
manager.mark_down_osd(id_)
+ log.info('waiting for all to be stale')
starttime = time.time()
done = False
while not done:
if time.time() - starttime > 900:
raise
+ log.info('reviving')
for id_ in teuthology.all_roles_of_type(ctx.cluster, 'osd'):
manager.revive_osd(id_)
manager.mark_in_osd(id_)