From 9e81ff58e599fc4035abaced7cb44693de333c5c Mon Sep 17 00:00:00 2001 From: tamil Date: Fri, 15 Mar 2013 15:50:52 -0700 Subject: [PATCH] added ceph_health check and a few log messages Signed-off-by: tamil --- teuthology/task/ceph-deploy.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/teuthology/task/ceph-deploy.py b/teuthology/task/ceph-deploy.py index f87b9a0fb773e..67a88ccf610cf 100644 --- a/teuthology/task/ceph-deploy.py +++ b/teuthology/task/ceph-deploy.py @@ -178,14 +178,21 @@ def build_ceph_cluster(ctx, config): execute_ceph_deploy(ctx, config, zap_disk) estatus_osd = execute_ceph_deploy(ctx, config, osd_create_cmds) if estatus_osd==0: - log.info('success') + log.info('successfully created osd') else: - log.info('failure') + log.info('failed to create osd') + else: + log.info('failed to deploy mds') + else: + log.info('failed to create monitors') + else: + log.info('failed to install ceph') + else: + log.info('failed to create config file and monitor keyring') else: - log.info('no monitor nodes') + log.info('no monitor nodes in the config file') log.info('Setting up client nodes...') - conf_path = '/etc/ceph/ceph.conf' first_mon = teuthology.get_first_mon(ctx, config) (mon0_remote,) = ctx.cluster.only(first_mon).remotes.keys() @@ -334,6 +341,6 @@ def task(ctx, config): branch=config.get('branch',{}), )), ): - #if config.get('wait-for-healthy', True): - #is_healthy(ctx=ctx, config=None) + if config.get('wait-for-healthy', True): + is_healthy(ctx=ctx, config=None) yield -- 2.39.5