keystone inappropriate debug logging

Bug #1269987 reported by Brant Knudson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Wishlist
Brant Knudson
devstack
Fix Released
Undecided
Brant Knudson

Bug Description

The keystone logs contain debug output from libraries that keystone uses. While these would be useful if you're debugging keystone's use of those libraries, it's generally not what you're doing as a developer. The default logging config set up by devstack should be changed so that the debug output from the "dogpile" and "routes" libraries is suppressed. If developers want to see it they can reconfigure.

This may be related to 953428 ... filing a separate bug since I'm only planning to fix keystone and I didn't bother looking into the rest of the projects to see what they do for logging.

Brant Knudson (blk-u)
Changed in devstack:
assignee: nobody → Brant Knudson (blk-u)
Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

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

Revision history for this message
Brant Knudson (blk-u) wrote :

Change devstack to not override the keystone config, and then change keystone to set its logging correctly.

Changed in keystone:
importance: Undecided → Wishlist
assignee: nobody → Brant Knudson (blk-u)
Changed in keystone:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/68530
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=4968d1ad5d8d6b0537c68548eb5f8c08bc33f63a
Submitter: Jenkins
Branch: master

commit 4968d1ad5d8d6b0537c68548eb5f8c08bc33f63a
Author: Brant Knudson <email address hidden>
Date: Wed Jan 22 19:06:44 2014 -0600

    Keystone use common logging setup

    The Keystone setup was using logging.conf to configure logging,
    unlike other projects. This may have been left over from before
    Keystone switched to oslo logging.

    Switching to common logging configuration allows:
    - Common format for logs for easier parsing
    - Pretty colorized logs
    - Keystone can control the default logging levels for libraries
      that are used by setting the defaults in keystone.
    - Potentially using a function to setup logging for all components
      using oslo-logging (e.g., share with lib/nova).

    Change-Id: I4e9b1e6cffce30f16a1e039224312852b8abda07
    Closes-Bug: #1271775
    Closes-Bug: #1269987

Changed in devstack:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/62068
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=27f9221722071eb047ff7691a01eceb37fd3c108
Submitter: Jenkins
Branch: master

commit 27f9221722071eb047ff7691a01eceb37fd3c108
Author: Brant Knudson <email address hidden>
Date: Fri Dec 13 13:43:21 2013 -0600

    Update the default_log_levels defaults

    The default for default_log_levels didn't set the log levels
    for some packages that Keystone uses (for example, dogpile). This
    caused the server to output a lot of extra logs when debug=True
    is used.

    You can get the debug output for dogpile and routes by setting
    default_log_levels explicitly in your keystone.conf file.

    Change-Id: Ib797fa7b98f0e501047b72b094d07ad204385cc6
    Related-bug: #1245629
    Closes-Bug: #1269987

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → icehouse-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: icehouse-3 → 2014.1
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.