Bug 1275364
Summary: | ActiveRecord::AssociationNotFoundError in evm.log | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Milan Falešník <mfalesni> | ||||
Component: | Providers | Assignee: | Keenan Brock <kbrock> | ||||
Status: | CLOSED ERRATA | QA Contact: | Milan Falešník <mfalesni> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5.5.0 | CC: | jfrey, jhardy, mfalesni, mfeifer, nachandr, obarenbo, simaishi, tcarlin | ||||
Target Milestone: | GA | ||||||
Target Release: | 5.5.0 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | 5.5.0.11 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-12-08 13:40:01 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: | |||||||
Attachments: |
|
copying bits from the previous private comment to a public comment From the stack trace, the last thing to be executed is: > /var/www/miq/vmdb/app/models/mixins/aggregation_mixin.rb:107:in `aggregate_hardware' Which can be seen here: https://github.com/ManageIQ/manageiq/blob/9d6fedbbcf32e2ec1739e4b3b7dbc808ec763103/app/models/mixins/aggregation_mixin.rb#L107 And, after parsing the string interpolation, it's calling: > region.all_host_ids I just verified that the following fails on the 5.5.0.8: > # bundle exec rails c > Loading production environment (Rails 4.2.4) > irb(main):001:0> r = MiqRegion.first > MiqRegion Inst Including Associations (9.3ms - 1rows) > => #<MiqRegion id: 1, region: 0, created_at: "2015-10-29 09:35:36", updated_at: "2015-10-29 09:35:36", description: "Region 0", guid: "6875e7aa-7e20-11e5-8eca-fa163ee7eed5"> > irb(main):002:0> r.all_host_ids > ActiveRecord::AssociationNotFoundError: Association named 'hosts' was not found on MiqRegion; perhaps you misspelled it? https://github.com/ManageIQ/manageiq/pull/4555 Already a PR open for this, luckily! PR https://github.com/ManageIQ/manageiq/pull/5212 created. marking as post. Specific errors can be addressed with individual bugs oops - wrong bug. reverting back to on_dev until merged into 5.5 *** Bug 1277300 has been marked as a duplicate of this bug. *** New commit detected on cfme/5.5.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=0b19abef5bda8a0f53e068bffde26ed48a2635ba commit 0b19abef5bda8a0f53e068bffde26ed48a2635ba Author: Dennis Metzger <dmetzger> AuthorDate: Mon Sep 28 09:41:24 2015 -0400 Commit: Keenan Brock <kbrock> CommitDate: Thu Nov 5 11:25:06 2015 -0500 Added virtual association for *_ids https://bugzilla.redhat.com/show_bug.cgi?id=1275364 app/models/metric/finders.rb | 2 +- lib/extensions/ar_virtual.rb | 4 ++++ spec/lib/extensions/ar_virtual_spec.rb | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) New commit detected on cfme/5.5.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=d76036d9472fd62dbba037defcc1700434c1628f commit d76036d9472fd62dbba037defcc1700434c1628f Merge: dab81d5 0b19abe Author: Greg McCullough <gmccullo> AuthorDate: Fri Nov 13 13:55:17 2015 -0500 Commit: Greg McCullough <gmccullo> CommitDate: Fri Nov 13 13:55:17 2015 -0500 Merge branch 'virtual_association_fix_mr' into '5.5.z' Added virtual association for *_ids cherry picked cleanly from https://github.com/ManageIQ/manageiq/pull/5212 https://bugzilla.redhat.com/show_bug.cgi?id=1275364 See merge request !367 app/models/metric/finders.rb | 2 +- lib/extensions/ar_virtual.rb | 4 ++++ spec/lib/extensions/ar_virtual_spec.rb | 24 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) *** Bug 1282932 has been marked as a duplicate of this bug. *** This error is no longer present in the evm.log in 5.5.0.11, also verified using the console. 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 |
Created attachment 1086555 [details] Excerpt from evm.log. Description of problem: I noticed this error happening in evm.log when I was looking for something else. I am not entirely sure what triggers this, but the appliance manages SCVMM SP1 (that was used to verify a bug), vSphere 5.5, RHOS5, RHOS6). I am including the excerpt from log as an attachment. Version-Release number of selected component (if applicable): 5.5.0.7 How reproducible: not sure Additional information: If you need, I can help with adding mentioned providers into your environment.