Some log levels not correctly setup from flags (e.g. nova.utils)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Some loggers are created before the flags are read, so are not set to DEBUG even when running with the --verbose flag set.
I added a logging.warn statement to log._get_
This is for the compute node (I haven't checked if other daemons exhibit the same problem or if they have a different set of flags)
Running against trunk.
WARNING:root:LOG nova.root => INFO
2011-02-03 17:16:03,818 WARNING nova.root [-] LOG nova.exception => INFO
2011-02-03 17:16:03,873 WARNING nova.root [-] LOG sqlalchemy => WARN
2011-02-03 17:16:03,913 WARNING nova.root [-] LOG nova.utils => INFO
2011-02-03 17:16:04,006 WARNING nova.root [-] LOG amqplib => WARN
2011-02-03 17:16:04,056 WARNING nova.root [-] LOG nova.fakerabbit => INFO
2011-02-03 17:16:04,057 WARNING nova.root [-] LOG nova.rpc => INFO
2011-02-03 17:16:04,096 AUDIT nova.root [-] Starting compute node (version 2011.1-
2011-02-03 17:16:04,096 DEBUG nova.root [-] Serving nova-compute from MainProcess (pid=29867) serve /home/justinsb/
2011-02-03 17:16:04,097 DEBUG nova.root [-] Full set of FLAGS: from MainProcess (pid=29867) serve /home/justinsb/
2011-02-03 17:16:04,097 DEBUG nova.root [-] rabbit_
...<snip>...
2011-02-03 17:16:04,101 DEBUG nova.root [-] verbose : True from MainProcess (pid=29867) serve /home/justinsb/
Related branches
- Thierry Carrez (community): Approve
- Devin Carlen (community): Approve
- termie (community): Approve
-
Diff: 871 lines (+148/-130)35 files modifiedbin/nova-ajax-console-proxy (+1/-1)
bin/nova-api (+3/-3)
bin/nova-combined (+1/-2)
bin/nova-compute (+4/-0)
bin/nova-console (+4/-0)
bin/nova-dhcpbridge (+1/-1)
bin/nova-direct-api (+2/-0)
bin/nova-import-canonical-imagestore (+2/-0)
bin/nova-instancemonitor (+0/-3)
bin/nova-manage (+1/-2)
bin/nova-network (+4/-0)
bin/nova-scheduler (+4/-0)
bin/nova-volume (+4/-0)
nova/api/openstack/auth.py (+0/-1)
nova/api/openstack/backup_schedules.py (+0/-1)
nova/api/openstack/images.py (+0/-2)
nova/api/openstack/servers.py (+0/-1)
nova/api/openstack/shared_ip_groups.py (+0/-2)
nova/api/openstack/zones.py (+0/-1)
nova/console/manager.py (+1/-1)
nova/console/xvp.py (+1/-1)
nova/log.py (+78/-53)
nova/service.py (+0/-3)
nova/test.py (+1/-1)
nova/tests/fake_flags.py (+1/-0)
nova/tests/test_auth.py (+0/-9)
nova/tests/test_console.py (+0/-2)
nova/tests/test_direct.py (+0/-1)
nova/tests/test_localization.py (+0/-1)
nova/tests/test_log.py (+30/-33)
nova/twistd.py (+1/-1)
nova/utils.py (+1/-1)
nova/wsgi.py (+0/-1)
run_tests.py (+2/-1)
run_tests.sh (+1/-1)
Changed in nova: | |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in nova: | |
status: | Confirmed → Fix Committed |
Changed in nova: | |
milestone: | none → 2011.2 |
status: | Fix Committed → Fix Released |
i think the fix for 718360 takes care of some of these problems ...