Bug 1599975

Summary: [OSP10] Backport of Suppress excessive debug logs when consume rabbit in oslo-messaging
Product: Red Hat OpenStack Reporter: Keigo Noha <knoha>
Component: python-oslo-messagingAssignee: Victor Stinner <vstinner>
Status: CLOSED ERRATA QA Contact: Udi Shkalim <ushkalim>
Severity: medium Docs Contact:
Priority: medium    
Version: 10.0 (Newton)CC: aherr, amcleod, apevec, dcadzow, fpercoco, jeckersb, lhh, mkrcmari, pkomarov, srevivo
Target Milestone: z9Keywords: FeatureBackport, Triaged, ZStream
Target Release: 10.0 (Newton)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-oslo-messaging-5.10.2-2.el7ost Doc Type: Enhancement
Doc Text:
Previously, when an OpenStack service logs at DEBUG level, Oslo Messaging logs the message "Timed out waiting for RPC response" unnecessarily. With this fix, Oslo Messaging no longer logs this message in instances when the timeout is recoverable.
Story Points: ---
Clone Of:
: 1600960 (view as bug list) Environment:
Last Closed: 2018-09-17 17:00:45 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:
Bug Depends On:    
Bug Blocks: 1600960    

Description Keigo Noha 2018-07-11 05:04:07 UTC
Description of problem:
If RabbitMQ is used, DEBUG enabled components write excessive time out messages like,
~~~
DEBUG oslo.messaging._drivers.impl_rabbit [-] Timed out waiting for RPC response: timed out _raise_timeout /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py:1049
DEBUG oslo.messaging._drivers.impl_rabbit [-] Timed out waiting for RPC response: Timeout while waiting on RPC response - topic: "<unknown>", RPC method: "<unknown>" info: "<unknown>" _raise_timeout /usr/lib/python2.7/site-packages/oslo_messaging/_drivers/impl_rabbit.py:1049
~~~

Version-Release number of selected component (if applicable):
current python-oslo-messaging

How reproducible:
Always

Steps to Reproduce:
1. Enable DEBUG option in nova, neutron.
2. Restart nova, neutron package.
3. Observe whether the messages is shown.

Actual results:
Too many messages are written to logs.

Expected results:
The message should be surpress.

Additional info:
Upstream LP and gerrit are below.
LP: https://bugs.launchpad.net/oslo.messaging/+bug/1714558
Gerrit: https://review.openstack.org/#/c/500210/

Comment 3 Victor Stinner 2018-07-13 14:09:21 UTC
The package python-oslo-messaging-5.10.2-2.el7ost is now ready for tests!

Comment 11 errata-xmlrpc 2018-09-17 17:00:45 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.

https://access.redhat.com/errata/RHBA-2018:2671