Bug 1253134
| Summary: | (LoadError) cannot load such file -- workers/event_catcher_openstack on adding openstack provider | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Aziza Karol <akarol> |
| Component: | Providers | Assignee: | Greg Blomquist <gblomqui> |
| Status: | CLOSED ERRATA | QA Contact: | Aziza Karol <akarol> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.5.0 | CC: | akarol, cpelland, jfrey, jhardy, obarenbo, simaishi |
| Target Milestone: | GA | ||
| Target Release: | 5.5.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 5.5.0.1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-12-08 13:26:55 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: | |||
|
Description
Aziza Karol
2015-08-13 05:09:34 UTC
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/d4ced59ee99063cee244dfe3e81af98c97acd9e8 commit d4ced59ee99063cee244dfe3e81af98c97acd9e8 Author: Greg Blomquist <gblomqui> AuthorDate: Tue Aug 25 16:11:13 2015 -0400 Commit: Greg Blomquist <gblomqui> CommitDate: Thu Aug 27 09:14:52 2015 -0400 [Namespacing] Ensure that workers require runners If workers do not `require_dependency` their runners, the `const_defined?(:Runner, false)` call in `corresponding_runner` will fail to find the appropriate runner class when starting up the worker. This results in finding the "legacy" worker runner. For instace, with the legacy MiqEventCatcherOpenstack, the corresponding runner used to be 'workers/event_catcher_openstack'. However, after the namespacing of OpenStack CloudManager, the worker is ManageIQ::Providers::Openstack::CloudManager::EventCatcher and the corresponding runner is ManageIQ::Providers::Openstack::CloudManager::EventCatcher::Runner. When `corresponding_runner` fails to find the appropriately namespaced runner class, it throws errors like: > (LoadError) cannot load such file -- workers/event_catcher_openstack on adding > openstack provider (Upstream only) https://bugzilla.redhat.com/show_bug.cgi?id=1253134 .../configuration_manager/refresh_worker.rb | 2 ++ .../foreman/provisioning_manager/refresh_worker.rb | 2 ++ .../openstack/cloud_manager/event_catcher.rb | 2 ++ .../cloud_manager/metrics_collector_worker.rb | 2 ++ .../openstack/cloud_manager/refresh_worker.rb | 2 ++ .../openstack/infra_manager/event_catcher.rb | 2 ++ .../infra_manager/event_catcher/runner.rb | 2 +- .../infra_manager/metrics_collector_worker.rb | 2 ++ .../openstack/infra_manager/refresh_worker.rb | 2 ++ spec/models/miq_worker_spec.rb | 30 ++++++++++++++++++++++ 10 files changed, 47 insertions(+), 1 deletion(-) New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/25c6dd53564a0ea528dc0df04ebdd31c47758bbb commit 25c6dd53564a0ea528dc0df04ebdd31c47758bbb Author: Greg Blomquist <gblomqui> AuthorDate: Tue Aug 25 16:17:35 2015 -0400 Commit: Greg Blomquist <gblomqui> CommitDate: Thu Aug 27 09:14:52 2015 -0400 [Namespacing] Fix namespaced EventCatcherMixin The EventCatcherMixin for Openstack was located at: `manageiq/providers/openstack/event_catcher_mixin.rb` But, the namespaced classname was: `ManageIQ::Providers::Openstack::CloudManager::EventCatcherMixin` I'm guessing that this may have been changed after the OpenStack Infra Manager was namespaced. (Upstream only) https://bugzilla.redhat.com/show_bug.cgi?id=1253134 app/models/manageiq/providers/openstack/event_catcher_mixin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) No error displayed on adding openstack infra provider. Verified: 5.5.0.11-rc1.20151117182049_653c0d4 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 |