No handlers could be found for logger "oslo_config.cfg"

Bug #1511505 reported by Stephen Finucane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Stephen Finucane
devstack
Invalid
Undecided
Stephen Finucane

Bug Description

Whenever I run a command using 'nova-manage', I get an unrelated warning followed by the output of my command:

    $ nova-manage vm list
    No handlers could be found for logger "oslo_config.cfg"
    instance node type state launched ...
    ....

Based on a quick bit of work with pdb, it seems this line is the culprit:

    https://github.com/openstack/oslo.config/blob/e208b500464f25930392c48c6748a48c752f1ccf/oslo_config/cfg.py#L774

We'd likely see this issue earlier/more often were a more verbose logging configuration set for 'oslo_config', but this is the only logging message typically issues by this . This is not a 'oslo_config' issue but a 'nova' one: the logger just seems to be misconfigured.

There's also the issue of why this warning is occuring. I suspect out of date configuration in devstack (which I'm using)

Revision history for this message
Stephen Finucane (stephenfinucane) wrote :

Yes, it's a deprecated option. That's an issue for devstack, but this still needs to be fixed

    $ cd /opt/stack/nova
    $ git show --oneline
    76fe5bf Merge "Rm openstack/common/versionutils from setup.cfg"

    $ python -m pdb $(which nova-manage) vm list
    (Pdb) b /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:341
    Breakpoint 1 at /usr/local/lib/python2.7/dist-packages/oslo_config/cfg.py:341
    (Pdb) c
    (Pdb) b LOG.warning
    Breakpoint 2 at /usr/lib/python2.7/logging/__init__.py:1162
    (Pdb) c
    > /usr/lib/python2.7/logging/__init__.py(1171)warning()
    -> if self.isEnabledFor(WARNING):
    (Pdb) p msg
    'Option "%s" from group "%s" is deprecated for removal. Its value may be silently ignored in the future.'
    (Pdb) p args
    ('verbose', 'DEFAULT')

Changed in nova:
assignee: nobody → Stephen Finucane (sfinucan)
status: New → Confirmed
Revision history for this message
Stephen Finucane (stephenfinucane) wrote :

Confirmed w/ @mriedam on IRC

Revision history for this message
Stephen Finucane (stephenfinucane) wrote :
Changed in devstack:
status: New → Confirmed
status: Confirmed → 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/240319

Changed in devstack:
assignee: nobody → Stephen Finucane (sfinucan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.openstack.org/240319
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=5ea1e16d83d6312fb17976ded0ab1a6a3773ca4d
Submitter: Jenkins
Branch: master

commit 5ea1e16d83d6312fb17976ded0ab1a6a3773ca4d
Author: Stephen Finucane <email address hidden>
Date: Thu Oct 29 20:12:26 2015 +0000

    lib/nova: Remove 'DEFAULT/verbose'

    The 'verbose' option has been deprecated by oslo_log. Using it
    results in a warning for the 'nova-manage' command and likely
    many other OpenStack commands.

    Change-Id: Icc11b25f56ebc62443c6afa90b9572d5c63b3882
    Partial-bug: #1511505

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Changed in nova:
status: Confirmed → Won't Fix
status: Won't Fix → Invalid
Changed in devstack:
status: In Progress → Fix Committed
Revision history for this message
Sean Dague (sdague) wrote :

This devstack bug was last updated over 180 days ago, as devstack
is a fast moving project and we'd like to get the tracker down to
currently actionable bugs, this is getting marked as Invalid. If the
issue still exists, please feel free to reopen it.

Changed in devstack:
status: Fix Committed → Invalid
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.