Project

General

Profile

Actions

Bug #17607

closed

tests: ceph-disk must ignore debug monc

Added by Loïc Dachary over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
jewel
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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 1 (0 open1 closed)

Copied to Ceph - Backport #17609: jewel: tests: ceph-disk must ignore debug moncResolvedLoïc DacharyActions
Actions #1

Updated by Loïc Dachary over 7 years ago

  • Backport set to jewel
Actions #2

Updated by Loïc Dachary over 7 years ago

  • Status changed from In Progress to Fix Under Review
Actions #3

Updated by Loïc Dachary over 7 years ago

  • Description updated (diff)
Actions #4

Updated by Loïc Dachary over 7 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #5

Updated by Loïc Dachary over 7 years ago

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

Updated by Loïc Dachary over 7 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF