Project

General

Profile

Bug #17607

Updated by Loic Dachary almost 4 years ago

https://github.com/ceph/teuthology/commit/5137d3c6cfd065c69fe7e3bb570ef0fc795febcb sets monc debug to 1 by default and since the ceph-disk sh function gets both stdout and stderr, it will mess up json parsing.

For instance http://qa-proxy.ceph.com/teuthology/teuthology-2016-10-19_03:10:02-ceph-disk-jewel-distro-basic-vps/484907/teuthology.log

<pre>
2016-10-19T06:53:24.012 INFO:tasks.workunit.client.0.vpm021.stdout:s = '2016-10-19 06:53:23.740709 7f94a9888700 1 monclient(hunting): found mon.a
2016-10-19T06:53:24.012 INFO:tasks.workunit.client.0.vpm021.stdout:
2016-10-19T06:53:24.012 INFO:tasks.workunit.client.0.vpm021.stdout:{"epoch":22,"fsid":"bb480ca8-6b28-4975-9a...rofiles":{"default":{"k":"2","m":"1","plugin":"jerasure","ruleset-failure-domain":"osd","technique":"reed_sol_van"}}}
2016-10-19T06:53:24.012 INFO:tasks.workunit.client.0.vpm021.stdout:'
2016-10-19T06:53:24.012 INFO:tasks.workunit.client.0.vpm021.stdout:_w = <built-in method match of _sre.SRE_Pattern object at 0x7fcf637eddf0>
2016-10-19T06:53:24.013 INFO:tasks.workunit.client.0.vpm021.stdout:
2016-10-19T06:53:24.013 INFO:tasks.workunit.client.0.vpm021.stdout: def decode(self, s, _w=WHITESPACE.match):
2016-10-19T06:53:24.013 INFO:tasks.workunit.client.0.vpm021.stdout: """Return the Python representation of ``s`` (a ``str`` or ``unicode``
2016-10-19T06:53:24.013 INFO:tasks.workunit.client.0.vpm021.stdout: instance containing a JSON document)
2016-10-19T06:53:24.013 INFO:tasks.workunit.client.0.vpm021.stdout:
2016-10-19T06:53:24.013 INFO:tasks.workunit.client.0.vpm021.stdout: """
2016-10-19T06:53:24.014 INFO:tasks.workunit.client.0.vpm021.stdout: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
2016-10-19T06:53:24.014 INFO:tasks.workunit.client.0.vpm021.stdout: end = _w(s, end).end()
2016-10-19T06:53:24.014 INFO:tasks.workunit.client.0.vpm021.stdout: if end != len(s):
2016-10-19T06:53:24.014 INFO:tasks.workunit.client.0.vpm021.stdout:> raise ValueError(errmsg("Extra data", s, end, len(s)))
2016-10-19T06:53:24.014 INFO:tasks.workunit.client.0.vpm021.stdout:E ValueError: Extra data: line 1 column 5 - line 4 column 1 (char 4 - 4128)
2016-10-19T06:53:24.014 INFO:tasks.workunit.client.0.vpm021.stdout:
</pre>

Back