Errors about "No handlers found for logger" when running tox tests are problematic

Bug #1491075 reported by Amrith Kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
High
Amrith Kumar

Bug Description

When I run tox (py27) the results include lines that indicate

No handlers found for logger ...

These lines are also non-deterministic because they occur in a portion of the test that runs multi-threaded.

The problem is that many of the tests (negative) cause the unit being tested to attempt to LOG an error but a logger hasn't been established.

I have a fix.

Revision history for this message
Amrith Kumar (amrith) wrote :

This includes lines like

No handlers could be found for logger "trove.guestagent.backup.backupagent"
No handlers could be found for logger "trove.guestagent.backup.backupagent"
No handlers could be found for logger "trove.cluster.models"
No handlers could be found for logger "trove.guestagent.strategies.storage.swift"

and maybe others!

Revision history for this message
Amrith Kumar (amrith) wrote :

No handlers could be found for logger "trove.conductor.manager"

The more CPU's you have, the more of these you seem to get ...

Revision history for this message
Amrith Kumar (amrith) wrote :

No handlers could be found for logger "trove.common.strategies.cluster.experimental.mongodb.api"

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to trove (master)

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

Changed in trove:
status: New → In Progress
Changed in trove:
importance: Undecided → High
milestone: none → liberty-rc1
Revision history for this message
Nikhil Manchanda (slicknik) wrote :

This is related to unit tests and is not a blocker for Liberty-RC1.

Changed in trove:
milestone: liberty-rc1 → next
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/219544
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=34ce70e299f57018b370ea0b8aa457f737f470b7
Submitter: Jenkins
Branch: master

commit 34ce70e299f57018b370ea0b8aa457f737f470b7
Author: Amrith Kumar <email address hidden>
Date: Sat Oct 17 18:29:57 2015 -0400

    Correct errors resulting in "No handlers ..." error message

    This is a checkin for the issue of having errors that read "No
    handlers could be found for logger X.Y.Z" when running tests. While
    being annoying, it is also a serious issue in that some times, the
    lack of logging masks errors in the tests. One such example is fixed
    in this chkin (see bug 1491093).

    Change-Id: I4066d226aefbd23248e88692db109d31f5c150e9
    Partial-Bug: #1491075
    Closes-Bug: #1491093

Amrith Kumar (amrith)
Changed in trove:
milestone: next → mitaka-rc1
status: In Progress → Fix Released
milestone: mitaka-rc1 → mitaka-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.