Signed-off-by: Zack Cerza <zack@redhat.com>
testdir = get_testdir(ctx)
with safe_while(sleep=6, tries=50) as proceed:
while proceed():
+ daemons = ctx.daemons.iter_daemons_of_role('osd', ceph_cluster)
+ for daemon in daemons:
+ daemon.check_status()
r = remote.run(
args=[
'adjust-ulimits',
t2 = datetime.strptime(records[2].asctime.split(',')[0], "%Y-%m-%d %H:%M:%S")
assert (t2 - t1).total_seconds() > 2
+
def test_wait_until_osds_up():
ctx = argparse.Namespace()
+ ctx.daemons = Mock()
+ ctx.daemons.iter_daemons_of_role.return_value = list()
remote = FakeRemote()
class r():