Bug 1247200
Summary: | OpenStack Event Catcher doesn't reconnect if RabbitMQ server restarted | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Pete Savage <psavage> | |
Component: | Providers | Assignee: | Greg Blomquist <gblomqui> | |
Status: | CLOSED DUPLICATE | QA Contact: | Pete Savage <psavage> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 5.4.0 | CC: | abellott, gblomqui, jfrey, jhardy, jprause, mfeifer, obarenbo | |
Target Milestone: | GA | |||
Target Release: | 5.6.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | openstack:event | |||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1291721 (view as bug list) | Environment: | ||
Last Closed: | 2016-02-19 20:51:14 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: | 1291721 |
Description
Pete Savage
2015-07-27 14:37:35 UTC
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/81cd635b10e46765c613fb31426c18ae1f1678db commit 81cd635b10e46765c613fb31426c18ae1f1678db Author: Greg Blomquist <gblomqui> AuthorDate: Mon Jul 27 16:20:01 2015 -0400 Commit: Greg Blomquist <gblomqui> CommitDate: Wed Jul 29 18:20:06 2015 -0400 Change caching for OpenstackEventMonitor OpenstackEventMonitor implementation classes were cached to be sure that we didn't do expensive connection tests each time events were gathered for an openstack provider. However, the cache was a permenant cache and was only cleared when the appliance was restarted. The new cache will invalidate every 5 minutes. This cache invalidation will allow the OpenstackEventMonitor to recover from communication failures with the AMQP service. https://bugzilla.redhat.com/show_bug.cgi?id=1247200 gems/pending/openstack/openstack_event_monitor.rb | 47 +++++++++++------------ 1 file changed, 22 insertions(+), 25 deletions(-) New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/728aa7b01221d4ef3426f1bf751eb1cade0471d2 commit 728aa7b01221d4ef3426f1bf751eb1cade0471d2 Author: Greg Blomquist <gblomqui> AuthorDate: Mon Jul 27 16:22:34 2015 -0400 Commit: Greg Blomquist <gblomqui> CommitDate: Wed Jul 29 18:20:07 2015 -0400 Implement OpenstackNullEventMonitor methods Originally, OpenstackNullEventMonitor raised NotImplementedErrors when the standard start, stop, and each_batch methods were called. It turns out that this was killing the OpenstackEventCatcher worker thread. In turn, this resulted in tons of messages in the logs showing the event catcher dying and restarting. By changing these methods to be implemented and empty, it will allow the event catcher thread to do nothing when the event monitor is the OpenstackNullEventMonitor. This coupled with better cache invalidation will allow the OpenstackEventMonitor to recover from communication failures with the AMQP service. https://bugzilla.redhat.com/show_bug.cgi?id=1247200 gems/pending/openstack/amqp/openstack_null_event_monitor.rb | 13 +++++-------- lib/workers/mixins/event_catcher_openstack_mixin.rb | 6 ++++-- 2 files changed, 9 insertions(+), 10 deletions(-) *** This bug has been marked as a duplicate of bug 1222005 *** |