config-resilience: Handle all rabbitmq producer/consumer reconnects
Improve connection handling with rabbit such that
1. The producer and consumer greenlets never die
2. Use context manager for semaphore and handle fail while wait
3. Log appropriately on these events.
Add unit tests to excercise these paths.
Closes-Bug: #1467000
Change-Id: If609a17b97039932d06ab70b40fee6dbdee624f3
(cherry picked from commit eac29147c8613f03dde50b812ef852b686d87c93)
Reviewed: https:/ /review. opencontrail. org/17204 github. org/Juniper/ contrail- controller/ commit/ 014e76f5a062995 b98a461a304fd90 a9a44b0d9e
Committed: http://
Submitter: Zuul
Branch: R2.20
commit 014e76f5a062995 b98a461a304fd90 a9a44b0d9e
Author: Hampapur Ajay <email address hidden>
Date: Thu Jul 23 10:05:14 2015 -0700
config-resilience: Handle all rabbitmq producer/consumer reconnects
Improve connection handling with rabbit such that
1. The producer and consumer greenlets never die
2. Use context manager for semaphore and handle fail while wait
3. Log appropriately on these events.
Add unit tests to excercise these paths.
Closes-Bug: #1467000 32d06ab70b40fee 6dbdee624f3 3dde50b812ef852 b686d87c93)
Change-Id: If609a17b970399
(cherry picked from commit eac29147c8613f0