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)
(cherry picked from commit 014e76f5a062995b98a461a304fd90a9a44b0d9e)
Reviewed: https:/ /review. opencontrail. org/19169 github. org/Juniper/ contrail- controller/ commit/ e2815c2ed61e11b 61eb39d54b27455 a7fc16701b
Committed: http://
Submitter: Zuul
Branch: R2.21.x
commit e2815c2ed61e11b 61eb39d54b27455 a7fc16701b
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) b98a461a304fd90 a9a44b0d9e)
Change-Id: If609a17b970399
(cherry picked from commit eac29147c8613f0
(cherry picked from commit 014e76f5a062995