Bug 1254429
Summary: | vdsm logs unicode literals explictly | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Pavel Zhukov <pzhukov> |
Component: | vdsm | Assignee: | Nobody <nobody> |
Status: | CLOSED WONTFIX | QA Contact: | Aharon Canan <acanan> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.5.4 | CC: | ahoness, amureini, bazulay, danken, ecohen, gklein, lpeer, lsurette, oourfali, pkliczew, pzhukov, ycui, yeylon |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | infra | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-10-07 08:55:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Pavel Zhukov
2015-08-18 06:58:17 UTC
I believe that this change is due to the move to jsonrpc; there has been no explicit change in vdsm logging to have caused u''. Pavel, please list the scripts broken by this. I think that we'd better off fixing them than hacking vdsm.log not to mark unicode strings as such. (In reply to Dan Kenigsberg from comment #1) > I believe that this change is due to the move to jsonrpc; there has been no > explicit change in vdsm logging to have caused u''. > > Pavel, please list the scripts broken by this. I think that we'd better off > fixing them than hacking vdsm.log not to mark unicode strings as such. It's set of my own script to parse vdsm.log (for performance measures). They have been working since 3.2 and broken now. And I don't think adding u'' improves readability of the logs or size of huge vdsm.log. This piece of script doesn't work anymore: date = ":".join(line.split(":")[0:3]).split(",")[0] json_string = line[line.index('{'):] json_raw = json.loads(json_string) You can post your scripts to vdsm's contrib subdirectory. Would you share a complete function here, so the context is clearer? (In reply to Dan Kenigsberg from comment #3) > You can post your scripts to vdsm's contrib subdirectory. Would you share a > complete function here, so the context is clearer? I don't have time for review of this Q&D scripts (the contain hardcoded paths, ticket numbers etc). I'm sorry. It's mix of bash/python scripts/snippets. The only thing I'd like to say by creating this bug that we (GSS) have to parse huge amount of data (vdsm.log.*.xz) to find the reason of problem and the format of the logs was radically changed from (almost) valid JSON to something hardly usable without any notification (and without any reasons). |