]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-deploy: purge /var/lib/ceph data on finish
authorSage Weil <sage@inktank.com>
Sun, 24 Mar 2013 22:12:59 +0000 (15:12 -0700)
committerSage Weil <sage@inktank.com>
Sun, 24 Mar 2013 22:12:59 +0000 (15:12 -0700)
The install task does this now that the package doesn't; we
need to too.

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/task/ceph-deploy.py

index 67a88ccf610cf323ec7a7bf888a56cd6307effa1..2fc59c54c5ff6f4a89deadc07bac05100db3ca68 100644 (file)
@@ -144,6 +144,7 @@ def build_ceph_cluster(ctx, config):
     new_mon = './ceph-deploy new'+" "+mon_nodes
     install_nodes = './ceph-deploy install '+ceph_branch+" "+all_nodes
     purge_nodes = './ceph-deploy purge'+" "+all_nodes
+    purgedata_nodes = './ceph-deploy purgedata'+" "+all_nodes
     uninstall_nodes = './ceph-deploy uninstall'+" "+all_nodes
     mon_create_nodes = './ceph-deploy mon create'+" "+mon_nodes
     mon_hostname = mon_nodes.split(' ')[0]
@@ -293,6 +294,7 @@ def build_ceph_cluster(ctx, config):
 
         log.info('Purging and Uninstalling ceph on test machines')
         execute_ceph_deploy(ctx, config, purge_nodes)
+        execute_ceph_deploy(ctx, config, purgedata_nodes)
         execute_ceph_deploy(ctx, config, uninstall_nodes)
 
 @contextlib.contextmanager