]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
ceph: debug valgrind error
authorSage Weil <sage@inktank.com>
Mon, 3 Jun 2013 16:57:17 +0000 (09:57 -0700)
committerSage Weil <sage@inktank.com>
Mon, 3 Jun 2013 16:57:17 +0000 (09:57 -0700)
  File "/var/lib/teuthworker/teuthology-master/teuthology/task/ceph.py", line 215, in valgrind_post
    (file, kind) = line.split(':')
ValueError: need more than 1 value to unpack

teuthology/task/ceph.py

index 59b4a68258cfa223e795881e0282abf9c9729a45..e6b5871b14e63257cd699bd025aa9cfbf775022b 100644 (file)
@@ -212,7 +212,11 @@ def valgrind_post(ctx, config):
             for line in out.split('\n'):
                 if line == '':
                     continue
-                (file, kind) = line.split(':')
+                try:
+                    (file, kind) = line.split(':')
+                except:
+                    log.error('failed to split line %s', line)
+                    raise
                 log.debug('file %s kind %s', file, kind)
                 if file.find('mds') >= 0 and kind.find('Lost') > 0:
                     continue