]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
added ceph_health check and a few log messages
authortamil <tamil.muthamizhan@inktank.com>
Fri, 15 Mar 2013 22:50:52 +0000 (15:50 -0700)
committertamil <tamil.muthamizhan@inktank.com>
Fri, 15 Mar 2013 22:50:52 +0000 (15:50 -0700)
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
teuthology/task/ceph-deploy.py

index f87b9a0fb773ee6db41dd371b0a0d1fca34f5989..67a88ccf610cf323ec7a7bf888a56cd6307effa1 100644 (file)
@@ -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