nova logs don't include line numbers anymore

Bug #1167081 reported by Joe Gordon
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Andrew Laski
devstack
Fix Released
Low
Unassigned

Bug Description

Nova logs (Devstack early Havana) do not include line numbers.

Line numbers are very useful when working with debug output.

Additionally nova-api logs don't include the context anymore, which contained the request-id which was useful for associating logs with a specific API request.

Revision history for this message
Joe Gordon (jogo) wrote :

Looks like the issue is devstack is overwriting the default log format to something much less useful.

Revision history for this message
Andrew Laski (alaski) wrote :

https://review.openstack.org/#/c/24032/ changed logging so that the default log_format is used, rather than the much more informative context and debug logging formats.

Changed in nova:
status: New → Confirmed
Revision history for this message
Andrew Laski (alaski) wrote :
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

we'll still need to switch from default to legacy formatter to get the "old-style" logs

Dean Troyer (dtroyer)
Changed in devstack:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/28160

Changed in nova:
assignee: nobody → Andrew Laski (alaski)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/28160
Committed: http://github.com/openstack/nova/commit/3e136dea2b259def305c9032cab5e1a08243c1c6
Submitter: Jenkins
Branch: master

commit 3e136dea2b259def305c9032cab5e1a08243c1c6
Author: Andrew Laski <email address hidden>
Date: Fri May 3 10:33:18 2013 -0400

    Import latest log module from oslo

    Deprecates log_format in favor of the formatting options used by the
    context aware formatter, such as logging_default_format_string.

    Changes the default logging formatter back to a colorful and context
    aware formatter. The default was inadvertently changed in the great
    oslo sync at the start of Havana, this returns it to what was in at the
    end of Grizzly.

    Adds support for lazy instantiation of the logger.

    Bug 1167081
    Bug 1165211

    Change-Id: Ibe41afc6e9d7b432453785819821b3c8f0078613

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → havana-1
status: Fix Committed → Fix Released
Revision history for this message
Andrea Frittoli (andrea-frittoli) wrote :

The request ID is still missing in devstack logs, making it difficult to troubleshoot issues in the gate test runs.

Revision history for this message
Andrew Laski (alaski) wrote :

Andrea, can you link an example where they're missing? In one of my devstack runs from last night http://logs.openstack.org/36729/2/check/gate-tempest-devstack-vm-full/31359/logs/screen-n-api.txt.gz you can see the request ids by searching for "req-".

Thierry Carrez (ttx)
Changed in nova:
milestone: havana-1 → 2013.2
Changed in devstack:
assignee: nobody → Sergio Cazzolato (sergio-j-cazzolato)
assignee: Sergio Cazzolato (sergio-j-cazzolato) → nobody
Dean Troyer (dtroyer)
Changed in devstack:
status: Confirmed → Fix Released
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.