]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
calling mon destroy command after mds create
authortamil <tamil.muthamizhan@inktank.com>
Tue, 16 Jul 2013 00:04:21 +0000 (17:04 -0700)
committertamil <tamil.muthamizhan@inktank.com>
Tue, 16 Jul 2013 00:04:21 +0000 (17:04 -0700)
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
teuthology/task/ceph-deploy.py

index 9e32ebdd1abd245ddc9e53b843adbc63677e654e..706c2c6024781ce7c45f377ab8e65f3853f6450a 100644 (file)
@@ -180,12 +180,7 @@ def build_ceph_cluster(ctx, config):
         estatus_mon = execute_ceph_deploy(ctx, config, mon_create_nodes)
         if estatus_mon != 0:
             raise Exception("ceph-deploy: Failed to create monitors")
-    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)
-        if estatus_mon_d != 0:
-            raise Exception("ceph-deploy: Failed to delete monitor")
-
+    
     estatus_gather = execute_ceph_deploy(ctx, config, gather_keys)
     while (estatus_gather != 0):
         mon_create_nodes = './ceph-deploy mon create'+" "+mon_node[0]
@@ -196,6 +191,12 @@ def build_ceph_cluster(ctx, config):
     if estatus_mds != 0:
         raise Exception("ceph-deploy: Failed to deploy mds")
 
+    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)
+        if estatus_mon_d != 0:
+            raise Exception("ceph-deploy: Failed to delete monitor")
+
     node_dev_list = get_dev_for_osd(ctx, config)
     for d in node_dev_list:
         osd_create_cmds = './ceph-deploy osd create --zap-disk'+" "+d