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

Bug 1188304

Summary: rabbit: more precise iterconsume timeout
Product: Red Hat OpenStack Reporter: John Eckersberg <jeckersb>
Component: python-oslo-messagingAssignee: Flavio Percoco <fpercoco>
Status: CLOSED ERRATA QA Contact: Udi Shkalim <ushkalim>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0 (Juno)CC: apevec, fpercoco, hguemar, lhh, mlopes, nbarcet, oblaut, pablo.iranzo, sgordon, yeylon
Target Milestone: ---Keywords: TestOnly, ZStream
Target Release: 6.0 (Juno)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-oslo-messaging-1.4.1-4.el7ost Doc Type: Bug Fix
Doc Text:
Previously, oslo.messaging could enter a loop while waiting for messages, if RabbitMQ had died. This update adds a more precise timeout handling for message consumption, allowing the poll operations on specific connections to end whenever such scenarios occur.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-24 14:48:29 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: 1214764    

Description John Eckersberg 2015-02-02 15:05:15 UTC
There are several ways that oslo.messaging can get hung when trying to reconnect to RabbitMQ.  This upstream change, pending Juno backport, addresses this:

https://review.openstack.org/#/c/143805/

It would be good to get this backport into RHOS-6.0.

Comment 5 Alan Pevec 2015-04-09 09:39:56 UTC
Please use RDO patches branch, I've now rebased it on top of stable/juno:
https://github.com/redhat-openstack/oslo.messaging/commits/juno-patches

Does that include all required patches or we need to cherry-pick something not backported to upstream stable/juno yet?

Comment 6 hguemar 2015-04-09 09:43:36 UTC
@Alan: good enough for me.

Comment 7 Flavio Percoco 2015-04-16 09:29:09 UTC
@Alan, it does provide the patch.

@hguemar, this now needs to be built.

Thank you, both

Comment 19 Udi Shkalim 2015-08-18 13:39:36 UTC
Verified using the following procedure:

 * Start a service that uses oslo.messaging with rabbitmq e.g. nova-compute

 * Stop rabbitmq while tail-F /var/log/nova/nova-compute.log

 * Observe that nova-compute amqp times out and it is trying to reconnect

 * Restart rabbitmq

 * Observe that rabbitmq connection has re-established

Without the fix a reoccurring message in rabbitmq log was showing:
=ERROR REPORT==== 18-Aug-2015::16:15:54 ===
closing AMQP connection <0.792.0> (10.35.160.37:42202 -> 10.35.160.37:5672):
{handshake_timeout,handshake}

Version:
2014.2.3
python-oslo-messaging-1.4.1-5.el7ost.noarch

Comment 20 John Eckersberg 2015-08-18 13:48:57 UTC
(In reply to ushkalim from comment #19)
> Verified using the following procedure:
> 
>  * Start a service that uses oslo.messaging with rabbitmq e.g. nova-compute
> 
>  * Stop rabbitmq while tail-F /var/log/nova/nova-compute.log
> 
>  * Observe that nova-compute amqp times out and it is trying to reconnect
> 
>  * Restart rabbitmq
> 
>  * Observe that rabbitmq connection has re-established
> 
> Without the fix a reoccurring message in rabbitmq log was showing:
> =ERROR REPORT==== 18-Aug-2015::16:15:54 ===
> closing AMQP connection <0.792.0> (10.35.160.37:42202 -> 10.35.160.37:5672):
> {handshake_timeout,handshake}
> 
> Version:
> 2014.2.3
> python-oslo-messaging-1.4.1-5.el7ost.noarch

Awesome news.  I've seen that handshake_timeout before and was wondering what was causing it from the client side.  If this makes that go away, I will be extra happy.

Comment 21 Flavio Percoco 2015-08-19 08:32:14 UTC
*** Bug 1230134 has been marked as a duplicate of this bug. ***

Comment 23 errata-xmlrpc 2015-08-24 14:48:29 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://rhn.redhat.com/errata/RHBA-2015-1659.html