Logging in Operations Guide - TRACE

Bug #1620782 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Low
Alexandra Settle

Bug Description

This section talks about the TRACE log level:

http://docs.openstack.org/ops-guide/ops-logging.html#reading-the-logs

"OpenStack services use the standard logging levels, at increasing severity: DEBUG, INFO, AUDIT, WARNING, ERROR, CRITICAL, and TRACE. That is, messages only appear in the logs if they are more “severe” than the particular log level, with DEBUG allowing all log statements through. For example, TRACE is logged only if the software has a stack trace, while INFO is logged for every message including those that are only for information."

That makes it sound like TRACE > CRITICAL, but actually TRACE < DEBUG, see the logging guidelines here:

https://specs.openstack.org/openstack/openstack-specs/specs/log-guidelines.html#definition-of-log-levels

The example here is also wrong:

"The first step in finding the source of an error is typically to search for a CRITICAL, TRACE, or ERROR message in the log starting at the bottom of the log file.

Here is an example of a CRITICAL log message, with the corresponding TRACE (Python traceback) immediately following:"

As of this change to oslo.log: https://review.openstack.org/#/c/166537/

Stacktraces are no longer use TRACE as the level, they are all ERROR, e.g.:

http://logs.openstack.org/40/365140/2/check/gate-tempest-dsvm-neutron-full-ubuntu-xenial/8c6013d/logs/screen-n-cpu.txt.gz?level=TRACE#_2016-09-06_15_27_35_424

http://paste.openstack.org/show/567250/

I'm not sure, however, to enable logging at TRACE level since we have the debug configuration option but we don't have something similar for trace that I can find.

-----------------------------------
Release: 0.0.1 on 2016-09-06 18:05
SHA: d56622b194607dfa04781ea03d38f9c127de7cbc
Source: http://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/ops-guide/source/ops-logging.rst
URL: http://docs.openstack.org/ops-guide/ops-logging.html

Tags: ops-guide
Revision history for this message
Matt Riedemann (mriedem) wrote :

I've filed an RFE bug with oslo.log to be able to configure and enable TRACE logging:

https://bugs.launchpad.net/oslo.log/+bug/1620789

Revision history for this message
Lana (loquacity) wrote :

That change has been abandoned, so I think we need to update the doc to reflect this behaviour.

Changed in openstack-manuals:
status: New → Confirmed
Chason Chan (chen-xing)
Changed in openstack-manuals:
assignee: nobody → Chason (chen-xing)
Changed in openstack-manuals:
assignee: Chason (chen-xing) → Alexandra Settle (alexandra-settle)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

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

Changed in openstack-manuals:
status: Confirmed → In Progress
Changed in openstack-manuals:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/421383
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=b338370d800a568c2acee5d0f5d826c65d7fdb85
Submitter: Jenkins
Branch: master

commit b338370d800a568c2acee5d0f5d826c65d7fdb85
Author: Alexandra Settle <email address hidden>
Date: Tue Jan 17 17:02:26 2017 +0000

    Correcting TRACE log level

    Change-Id: Ia74dfbd73dfcc265ee6bf5891ab628746d6d138d
    Closes-bug: 1620782

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

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.