From 4686115c4830939ea6c9d7a27fd89d7cec9d4d5d Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 30 Jul 2014 16:27:40 -0400 Subject: [PATCH] add another call to use "ps aux" Signed-off-by: Alfredo Deza --- teuthology/task/ceph_deploy.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/teuthology/task/ceph_deploy.py b/teuthology/task/ceph_deploy.py index 0a3aa14d7da46..27ae68b5f3222 100644 --- a/teuthology/task/ceph_deploy.py +++ b/teuthology/task/ceph_deploy.py @@ -348,8 +348,16 @@ def build_ceph_cluster(ctx, config): 'sudo', 'service', 'ceph', 'stop' ]) # Are you really not running anymore? + # try first with the init tooling ctx.cluster.run(args=['sudo', 'status', 'ceph-all', run.Raw('||'), 'sudo', 'service', 'status', 'ceph-all']) + + # and now just check for the processes themselves, as if upstart/sysvinit + # is lying to us + ctx.cluster.run(args=['sudo', 'ps', 'aux', run.Raw('|'), + 'grep', '-v', 'grep', run.Raw('|'), + 'grep', 'ceph']) + if ctx.archive is not None: # archive mon data, too log.info('Archiving mon data...') -- 2.39.5