From f9aa9c1e647dc3376a33d0f7147501bffcddf838 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 6 Aug 2014 09:25:33 -0400 Subject: [PATCH] ignore errors if 'ps aux' fails Signed-off-by: Alfredo Deza --- teuthology/task/ceph_deploy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teuthology/task/ceph_deploy.py b/teuthology/task/ceph_deploy.py index 27ae68b5f3222..9964bab996ecb 100644 --- a/teuthology/task/ceph_deploy.py +++ b/teuthology/task/ceph_deploy.py @@ -353,10 +353,10 @@ def build_ceph_cluster(ctx, config): 'sudo', 'service', 'status', 'ceph-all']) # and now just check for the processes themselves, as if upstart/sysvinit - # is lying to us + # is lying to us. Ignore errors if the grep fails ctx.cluster.run(args=['sudo', 'ps', 'aux', run.Raw('|'), 'grep', '-v', 'grep', run.Raw('|'), - 'grep', 'ceph']) + 'grep', 'ceph'], check_status=False) if ctx.archive is not None: # archive mon data, too -- 2.39.5