No handlers could be found for logger "oslo_config.cfg"
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:
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)
Yes, it's a deprecated option. That's an issue for devstack, but this still needs to be fixed
$ cd /opt/stack/nova common/ versionutils from setup.cfg"
$ git show --oneline
76fe5bf Merge "Rm openstack/
$ python -m pdb $(which nova-manage) vm list lib/python2. 7/dist- packages/ oslo_config/ cfg.py: 341 lib/python2. 7/dist- packages/ oslo_config/ cfg.py: 341 python2. 7/logging/ __init_ _.py:1162 python2. 7/logging/ __init_ _.py(1171) warning( ) or(WARNING) :
(Pdb) b /usr/local/
Breakpoint 1 at /usr/local/
(Pdb) c
(Pdb) b LOG.warning
Breakpoint 2 at /usr/lib/
(Pdb) c
> /usr/lib/
-> if self.isEnabledF
(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')