]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
added test_mon_destroy option to ceph-deploy task
authortamil <tamil.muthamizhan@inktank.com>
Fri, 26 Jul 2013 00:12:52 +0000 (17:12 -0700)
committertamil <tamil.muthamizhan@inktank.com>
Fri, 26 Jul 2013 00:12:52 +0000 (17:12 -0700)
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
teuthology/task/ceph-deploy.py

index 39da3e103467647ec54692a0a9c87e68aed4d2f5..4d8c0992337763caec941f6a00ce28c535e732cd 100644 (file)
@@ -208,7 +208,7 @@ def build_ceph_cluster(ctx, config):
     if estatus_mds != 0:
         raise Exception("ceph-deploy: Failed to deploy mds")
 
-    if config.get('test-mon-destroy'):
+    if config.get('test_mon_destroy') is not None:
         for d in range(1, len(mon_node)):
             mon_destroy_nodes = './ceph-deploy mon destroy'+" "+mon_node[d]
             estatus_mon_d = execute_ceph_deploy(ctx, config, mon_destroy_nodes)
@@ -415,6 +415,7 @@ def task(ctx, config):
                  conf=config.get('conf', {}),
                  branch=config.get('branch',{}),
                  mon_initial_members=config.get('mon_initial_members', None),
+                 test_mon_destroy=config.get('test_mon_destroy', None),
                  )),
         ):
         yield