Bug 1232484
Summary: | OpenStack Event Catcher Thread Constantly Failing and Restarting | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | david.costakos | |
Component: | Providers | Assignee: | Greg Blomquist <gblomqui> | |
Status: | CLOSED ERRATA | QA Contact: | Ramesh A <rananda> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 5.4.0 | CC: | clasohm, cpelland, dclarizi, gblomqui, jfrey, jhardy, jrafanie, kmorey, mfeifer, obarenbo | |
Target Milestone: | GA | Keywords: | ZStream | |
Target Release: | 5.5.0 | Flags: | rananda:
automate_bug-
|
|
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | 5.5.0.1 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1233798 (view as bug list) | Environment: | ||
Last Closed: | 2015-12-08 13:14:04 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: | 1233798 |
Description
david.costakos
2015-06-16 21:04:30 UTC
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/3649eb07a5e8b1b9a5f56dab11eb205e66758ef5 commit 3649eb07a5e8b1b9a5f56dab11eb205e66758ef5 Author: Greg Blomquist <gblomqui> AuthorDate: Tue Jun 23 13:30:07 2015 -0400 Commit: Greg Blomquist <gblomqui> CommitDate: Tue Jun 23 16:00:12 2015 -0400 Include miq_server when retrieving worker To try to make the way the OpenStack event catcher creates binding queues work a little better, the appliance's IP address was looked up and used as part of the binding queue's name. However, there were a couple of things working against this fix. First, the appliance's IP address was not readily available to the worker process. Second, ManageIQ has a DB connection pool with only one connection. And, threads (i.e., where event catcher workers do all their work) that attempt to run queries are opening a new DB connection. The original fix never actually tried opening the a new connection. Instead, it was perfectly happy to get back a nil value for the appliance and try to lookup Nil#ipaddress. This fix gets around this problem by throwing the appliance record (miq_server, actually) into an ivar and making that available to the thread. This keeps the thread from having to query for the miq_server, while still giving it access to the MiqServer#ipaddress. Original PR: https://github.com/ManageIQ/manageiq/pull/3050 Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1232484 References: https://bugzilla.redhat.com/show_bug.cgi?id=1224389 https://bugzilla.redhat.com/show_bug.cgi?id=1223976 vmdb/lib/workers/mixins/event_catcher_openstack_mixin.rb | 2 +- vmdb/lib/workers/worker_base.rb | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) Good to go. Verified and working fine in 5.5.0.8-beta1.4.20151027164951_4ab7fea. Did not see the error message after performing the following operations 1. Added RHOS provider and waited for sometime 2. Added valid / invalid AMPQ credentials and waited for sometime Hence moving it to verified state. 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/RHSA-2015:2551 |