python package amqp, should not run in debug mode when nova is in debug mode

Bug #1207576 reported by Joe Gordon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Anton
oslo-incubator
Won't Fix
Undecided
Anton

Bug Description

Currently the python package amqp runs in debug mode when nova is in debug mode. When specifying debug level logs in nova generally we are trying to debug nova not its dependencies. So by default amqp and other python dependencies shouldn't be running in debug mode when nova is.

http://logs.openstack.org/47/36947/5/check/gate-tempest-devstack-vm-full/37958/logs/screen-n-sch.txt.gz

2013-07-31 20:52:43.207 28626 DEBUG amqp [-] Start from server, version: 0.9, properties: {u'information': u'Licensed under the MPL. See http://www.rabbitmq.com/', u'product': u'RabbitMQ', u'copyright': u'Copyright (C) 2007-2011 VMware, Inc.', u'capabilities': {u'exchange_exchange_bindings': True, u'consumer_cancel_notify': True, u'publisher_confirms': True, u'basic.nack': True}, u'platform': u'Erlang/OTP', u'version': u'2.7.1'}, mechanisms: [u'PLAIN', u'AMQPLAIN'], locales: [u'en_US'] _start /usr/local/lib/python2.7/dist-packages/amqp/connection.py:706
2013-07-31 20:52:43.208 28626 DEBUG amqp [-] Open OK! _open_ok /usr/local/lib/python2.7/dist-packages/amqp/connection.py:592
2013-07-31 20:52:43.208 28626 DEBUG amqp [-] using channel_id: 1 __init__ /usr/local/lib/python2.7/dist-packages/amqp/channel.py:70
2013-07-31 20:52:43.208 28626 DEBUG amqp [-] Channel open _open_ok /usr/local/lib/python2.7/dist-packages/amqp/channel.py:420

Revision history for this message
Robert Collins (lifeless) wrote :

mmm, arguably when running in debug we should snarf as much as possible because the fault might not be in nova.

Separately, I would love it if we could make switching in/out of debug mode not require service restarts.

Revision history for this message
Joe Gordon (jogo) wrote :

While more data is better when debugging, things like the amqp library are rarley the issue when debugging, and leaving debug on for it makes the logs harder to parse as a human. I would like to see two debug log levels. Debug nova only and debug all. and setting log level to debug would do debug nova only.

Revision history for this message
Matt Riedemann (mriedem) wrote :

This isn't the answer but it might be helpful: http://logstash.openstack.org/

Revision history for this message
Joe Gordon (jogo) wrote :

Matt, yes it is very helpful and not the answer

Changed in nova:
status: New → Confirmed
importance: Undecided → Medium
Anton (agorenkov)
Changed in nova:
assignee: nobody → Anton (agorenkov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Brad Pokorny (bpokorny) wrote :

This one looks to me like something that would affect all OpenStack projects. Also, the proposed fix for this one is a change to log.py, which is synced from oslo to nova. So the fix should go into oslo so all projects can take advantage of it.

Anton (agorenkov)
Changed in oslo:
assignee: nobody → Anton (agorenkov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to oslo-incubator (master)

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

Changed in oslo:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/havana)

Fix proposed to branch: stable/havana
Review: https://review.openstack.org/64023

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

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

Revision history for this message
Anton (agorenkov) wrote :

As it was discussed here https://review.openstack.org/#/c/64022/ :

Bug on oslo was fixed:

>> We've been handling this on a lib by lib basis lately. I think the linked bug was actually fixed
>> by https://github.com/openstack/oslo-incubator/commit/fb8075a19d475ad7f2868242ab59507bc1fb229e

And it was synced to nova by https://github.com/openstack/nova/commit/bcc1f16c8491a7333b6fd15bafeef2a95f406d0f

So I think the issue is fixed now.

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