]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ignore errors if 'ps aux' fails
authorAlfredo Deza <alfredo.deza@inktank.com>
Wed, 6 Aug 2014 13:25:33 +0000 (09:25 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Wed, 6 Aug 2014 15:50:36 +0000 (11:50 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
(cherry picked from commit f9aa9c1e647dc3376a33d0f7147501bffcddf838)

teuthology/task/ceph_deploy.py

index 27ae68b5f322204c7490b3ff217bffc364158429..9964bab996ecb75072d54d5a70888816aae3b229 100644 (file)
@@ -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