Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1047849

Summary: openstack-nova: remove qpid logs from the compute logs
Product: Red Hat OpenStack Reporter: Yogev Rabl <yrabl>
Component: openstack-novaAssignee: Solly Ross <sross>
Status: CLOSED ERRATA QA Contact: Gabriel Szasz <gszasz>
Severity: low Docs Contact:
Priority: medium    
Version: 4.0CC: ajeain, dallan, mlopes, ndipanov, sgordon, sradvan, vpopovic, yeylon
Target Milestone: z2Keywords: ZStream
Target Release: 4.0Flags: sross: internal-review+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-nova-2013.2.1-4.el6ost Doc Type: Deprecated Functionality
Doc Text:
In OpenStack Compute, low-level QPID debug log messages are no longer shown by default. These previously appeared due to the 'level=debug' parameter set in the nova.conf file. These messages can be re-enabled by setting 'qpid=INFO' under the default_log_levels option in the nova.conf file.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-04 19:04:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yogev Rabl 2014-01-02 11:23:31 UTC
Description of problem:
The compute logs are been filled with qpid messages, they're format is causing the log to be unfriendly to the user. 
A different log for these kind of messages or a different logging level will be very helpful. 


for an example: 
2014-01-02 03:36:08.650 14873 DEBUG qpid.messaging.io.ops [-] SENT[2f687e8]: MessageFlow(destination='0', unit=0, value=1L, id=serial(84390)) write_op /usr/lib/python2.6/site-packages/qpid/messaging/driver.py:686
2014-01-02 03:36:08.651 14873 DEBUG qpid.messaging.io.ops [-] SENT[2f687e8]: SessionCompleted(commands=[0-84384]) write_op /usr/lib/python2.6/site-packages/qpid/messaging/driver.py:686
2014-01-02 03:36:08.652 14873 DEBUG qpid.messaging.io.raw [-] SENT[2f687e8]: '\x0f\x01\x00\x19\x00\x01\x00\x00\x00\x00\x00\x00\x04\n\x01\x00\x07\x00\x010\x00\x00\x00\x00\x01\x0f\x00\x00\x1a\x00\x00\x00\x00\x00\x00\x00\x00\x02\n\x01\x00\x00\x08\x00\x00\x00\x00\x00\x01I\xa0' writeable /usr/lib/python2.6/site-packages/qpid/messaging/driver.py:480
2014-01-02 03:36:08.656 14873 DEBUG qpid.messaging.io.raw [-] READ[2f687e8]: '\x0b\x01\x00\x16\x00\x01\x00\x00\x00\x00\x00\x00\x04\x01\x01\x00\x07\x00\x010\x01\x00\x03\x02\x00\x95\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00K\x04\x03\x10\x01\x08amqp/map\x00\x00\x00:\x00\x00\x00\x01\x0cqpid.subject\x95\x00&reply_a6461ac39e7942ad8a9231306e494b1d\x00\x00\x006\x04\x01\x00\x03\namq.direct&reply_a6461ac39e7942ad8a9231306e494b1d\x07\x03\x00\xc9\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb9\x00\x00\x00\x02\x0coslo.message\x95\x00\x92{"_unique_id": "6838fe3242bc40218c3c7bb1bf0df94e", "failure": null, "_msg_id": "6d50d4d8b60a49a3800f2a803af4529c", "result": null, "ending": true}\x0coslo.version\x95\x00\x032.0' readable /usr/lib/python2.6/site-packages/qpid/messaging/driver.py:416



Version-Release number of selected component (if applicable):
python-nova-2013.2-10.el6ost.noarch
openstack-nova-conductor-2013.2-10.el6ost.noarch
openstack-nova-api-2013.2-10.el6ost.noarch
openstack-nova-novncproxy-2013.2-10.el6ost.noarch
openstack-nova-console-2013.2-10.el6ost.noarch
openstack-nova-compute-2013.2-10.el6ost.noarch
openstack-nova-scheduler-2013.2-10.el6ost.noarch
openstack-nova-cert-2013.2-10.el6ost.noarch
python-novaclient-2.15.0-1.el6ost.noarch
openstack-nova-common-2013.2-10.el6ost.noarch

Comment 1 Russell Bryant 2014-01-09 16:19:52 UTC
At some point, Icehouse I think, we updated the default config to not include these messages when you turn debug on.

To do this you just need to update the default_log_levels config option to include "qpid=INFO"

Comment 2 Solly Ross 2014-01-13 20:23:09 UTC
The current Icehouse level is 'qpid=WARN', introduced into nova by commit 'bcc1f16c', which (among other things) synced the change 'fb8075a19d Add amqp=WARN,qpid=WARN to default_log_levels'.

Comment 6 Solly Ross 2014-02-10 18:06:07 UTC
reviewed and merged

Comment 10 errata-xmlrpc 2014-03-04 19:04:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2014-0231.html