From 5b946e1a6df8b7f80001f5176435eb36b12711e3 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 21 Aug 2014 09:44:45 -0400 Subject: [PATCH] ignore errors on informational service status Signed-off-by: Alfredo Deza --- tasks/ceph_deploy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/ceph_deploy.py b/tasks/ceph_deploy.py index 92d6ff693a8..62c8da40560 100644 --- a/tasks/ceph_deploy.py +++ b/tasks/ceph_deploy.py @@ -349,8 +349,10 @@ def build_ceph_cluster(ctx, config): # Are you really not running anymore? # try first with the init tooling + # ignoring the status so this becomes informational only ctx.cluster.run(args=['sudo', 'status', 'ceph-all', run.Raw('||'), - 'sudo', 'service', 'ceph', 'status']) + 'sudo', 'service', 'ceph', 'status'], + check_status=False) # and now just check for the processes themselves, as if upstart/sysvinit # is lying to us. Ignore errors if the grep fails