From: Sage Weil Date: Thu, 18 Apr 2013 15:06:52 +0000 (-0700) Subject: ceph-deploy: stop daemons, archive, then purge[data] X-Git-Tag: 1.1.0~2176^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4efed0841558eb12d37f93eba1060a7c78a6695f;p=teuthology.git ceph-deploy: stop daemons, archive, then purge[data] Purge removes logs, and we want to archive those, so explicitly shut down all daemons before doing the archiving step. Signed-off-by: Sage Weil --- diff --git a/teuthology/task/ceph-deploy.py b/teuthology/task/ceph-deploy.py index ed88cf4af..611b270f9 100644 --- a/teuthology/task/ceph-deploy.py +++ b/teuthology/task/ceph-deploy.py @@ -245,8 +245,12 @@ def build_ceph_cluster(ctx, config): yield finally: - log.info('Purging package...') - execute_ceph_deploy(ctx, config, purge_nodes) + log.info('Stopping ceph...') + ctx.cluster.run(args=[ + 'sudo', 'stop', 'ceph', + run.Raw('||'), + 'sudo', 'service', 'ceph', 'stop' + ]) if ctx.archive is not None: # archive mon data, too @@ -294,7 +298,9 @@ def build_ceph_cluster(ctx, config): teuthology.pull_directory(remote, '/var/log/ceph', os.path.join(sub, 'log')) - log.info('Purging data on test machines') + log.info('Purging package...') + execute_ceph_deploy(ctx, config, purge_nodes) + log.info('Purging data...') execute_ceph_deploy(ctx, config, purgedata_nodes) @contextlib.contextmanager