Project

General

Profile

Bug #17607

tests: ceph-disk must ignore debug monc

Added by Loic Dachary over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
10/18/2016
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

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

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:

Related issues

Copied to Ceph - Backport #17609: jewel: tests: ceph-disk must ignore debug monc Resolved

History

#1 Updated by Loic Dachary over 2 years ago

  • Backport set to jewel

#2 Updated by Loic Dachary over 2 years ago

  • Status changed from In Progress to Need Review

#3 Updated by Loic Dachary over 2 years ago

  • Description updated (diff)

#4 Updated by Loic Dachary over 2 years ago

  • Status changed from Need Review to Pending Backport

#5 Updated by Loic Dachary over 2 years ago

  • Copied to Backport #17609: jewel: tests: ceph-disk must ignore debug monc added

#6 Updated by Loic Dachary over 2 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF