From 4efed0841558eb12d37f93eba1060a7c78a6695f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 18 Apr 2013 08:06:52 -0700 Subject: [PATCH] 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 --- teuthology/task/ceph-deploy.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/teuthology/task/ceph-deploy.py b/teuthology/task/ceph-deploy.py index ed88cf4af65cb..611b270f99bb4 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 -- 2.39.5