From e1634ed2ed968a50ee254776e74e557326af3f35 Mon Sep 17 00:00:00 2001 From: John Spray Date: Wed, 13 Jan 2016 10:16:40 +0000 Subject: [PATCH] tasks/cephfs: debug in wait_for_daemons Signed-off-by: John Spray --- tasks/cephfs/filesystem.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/cephfs/filesystem.py b/tasks/cephfs/filesystem.py index f9644eaf6b068..c68ee0265968d 100644 --- a/tasks/cephfs/filesystem.py +++ b/tasks/cephfs/filesystem.py @@ -369,6 +369,9 @@ class Filesystem(MDSCluster): active_count = 0 status = self.get_mds_map() + + log.info("are_daemons_healthy: mds map: {0}".format(status)) + for mds_id, mds_status in status['info'].items(): if mds_status['state'] not in ["up:active", "up:standby", "up:standby-replay"]: log.warning("Unhealthy mds state {0}:{1}".format(mds_id, mds_status['state'])) @@ -376,6 +379,10 @@ class Filesystem(MDSCluster): elif mds_status['state'] == 'up:active': active_count += 1 + log.info("are_daemons_healthy: {0}/{1}".format( + active_count, status['max_mds'] + )) + if active_count >= status['max_mds']: # The MDSMap says these guys are active, but let's check they really are for mds_id, mds_status in status['info'].items(): -- 2.39.5