Inconsistent formats in eventlet.wsgi records

Bug #1155633 reported by MarkSeger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Invalid
Undecided
Unassigned
oslo.log
Expired
Low
Unassigned

Bug Description

The section of a DEBUG eventlet.wsgi record normally contains a field that looks like this:

[f9ebed7e-1efd-4ce7-af91-72150d032364 86628093430250 58924572785796]

and while running some code that parses the data into fields based on whitespace I just found a record containing this: [-], resulting in the fields positions of the records that follow changing. I'd suggest changing [-] to [- - -] for consistency.

If you consider [] a single field this is not a bug, but if you consider the whole record as space-separated values which I believe most people like me do, this makes parsing a more complicated and also sets a bad precedence.

Revision history for this message
Mark Washenberger (markwash) wrote :

Hi Mark,

I think your proposal makes a lot of sense. I would be quite annoyed if I had to reprogram an awk script for log parsing just to tell the difference between such lines.

However, Glance takes its logging implementation (and the default formatting settings) from the oslo project: https://launchpad.net/oslo.

So, I can see two approaches.

1) You could solve your problem directly by changing the configuration settings logging_default_format_string and logging_context_format_string to match better in your deployment.

2) You could apply this bug to the oslo project, with the idea of having oslo change their default format strings to match better. Relevant code lines are near here: https://github.com/openstack/oslo-incubator/blob/master/openstack/common/log.py#L113

In any case, I don't see this as being a problem we would want to fix directly in glance, but thank you for the feedback!

Changed in glance:
status: New → Invalid
Changed in oslo:
importance: Undecided → Low
status: New → Triaged
Michael Turek (mjturek)
Changed in oslo:
assignee: nobody → Michael Turek (mjturek)
affects: oslo-incubator → oslo.log
Michael Turek (mjturek)
Changed in oslo.log:
assignee: Michael Turek (mjturek) → nobody
Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

I think this is fixed in master and possibly earlier by 1640564dd15bda135ea37be3b76d5ae0ac28b7bc. Is this problem still showing up?

Changed in oslo.log:
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for oslo.log because there has been no activity for 60 days.]

Changed in oslo.log:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.