Bug 1395376 - Host Summary for VMs report failing
Summary: Host Summary for VMs report failing
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Reporting
Version: 5.7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.8.0
Assignee: Yuri Rudman
QA Contact: Satyajit Bulage
URL:
Whiteboard: report
Depends On:
Blocks: 1412396
TreeView+ depends on / blocked
 
Reported: 2016-11-15 20:32 UTC by Yuri Rudman
Modified: 2017-06-12 17:53 UTC (History)
6 users (show)

Fixed In Version: 5.8.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1412396 (view as bug list)
Environment:
Last Closed: 2017-06-12 17:53:44 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Screenshot - Host Summary for VMs report error (122.01 KB, image/png)
2016-11-15 20:32 UTC, Yuri Rudman
no flags Details

Description Yuri Rudman 2016-11-15 20:32:51 UTC
Created attachment 1220954 [details]
Screenshot - Host Summary for VMs report error

Description of problem:
Error when generating Host Summary for VMs report 


Version-Release number of selected component (if applicable): 5.7


How reproducible: always


Steps to Reproduce:
Navigate to Cloud Intel->Reports->Configuration Managment-Hosts and queue 'Host Summary for VMs' report 


Actual results: error


Additional info: in evm.log:

[----] E, [2016-11-15T15:11:33.895183 #1543:3fd09905e200] ERROR -- : [NoMethodError]: undefined method `where' for []:Array  Method:[rescue in _async_generate_table]
[----] E, [2016-11-15T15:11:33.895394 #1543:3fd09905e200] ERROR -- : /Users/yrudman/work/rh/manageiq/app/models/mixins/relationship_mixin.rb:117:in `parent_rel_ids'
/Users/yrudman/.gem/ruby/2.2.4/gems/memoist-0.14.0/lib/memoist.rb:165:in `parent_rel_ids'
/Users/yrudman/work/rh/manageiq/app/models/mixins/relationship_mixin.rb:123:in `parent_rels'
/Users/yrudman/.gem/ruby/2.2.4/gems/memoist-0.14.0/lib/memoist.rb:209:in `parent_rels'
/Users/yrudman/work/rh/manageiq/app/models/mixins/relationship_mixin.rb:151:in `parent'
/Users/yrudman/work/rh/manageiq/app/models/vm_or_template.rb:489:in `block in genealogy_parent'
/Users/yrudman/work/rh/manageiq/app/models/mixins/relationship_mixin.rb:84:in `with_relationship_type'
/Users/yrudman/work/rh/manageiq/app/models/vm_or_template.rb:489:in `genealogy_parent'
/Users/yrudman/work/rh/manageiq/app/models/vm_or_template.rb:505:in `os_image_name'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:660:in `block in build_get_attributes_with_options'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:656:in `each'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:656:in `build_get_attributes_with_options'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:644:in `build_reportable_data'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:720:in `block (3 levels) in build_add_includes'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:718:in `each'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:718:in `block (2 levels) in build_add_includes'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:714:in `each'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:714:in `block in build_add_includes'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:673:in `each'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:673:in `build_add_includes'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:645:in `build_reportable_data'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:373:in `block in build_table'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:372:in `collect'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:372:in `build_table'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:293:in `_generate_table'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:172:in `block in generate_table'
/Users/yrudman/work/rh/manageiq/app/models/user.rb:232:in `with_user'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator.rb:172:in `generate_table'
/Users/yrudman/work/rh/manageiq/app/models/miq_report/generator/async.rb:96:in `_async_generate_table'

Comment 2 Dave Johnson 2016-12-06 16:52:21 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

Comment 3 Yuri Rudman 2016-12-19 18:31:56 UTC
There are 2 issue discovered:

1. OS VMware ESXi was not listed as known operating system and image name representing VMware ESXi was not defined.
PR to fix above: https://github.com/ManageIQ/manageiq/pull/13249

2. Issue with RelationshipMixin.rb

Comment 5 CFME Bot 2016-12-20 18:16:04 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/ad5f72334d7aa3619a932b895fd1e93d10261a9d

commit ad5f72334d7aa3619a932b895fd1e93d10261a9d
Author:     Keenan Brock <kbrock>
AuthorDate: Mon Dec 19 13:45:40 2016 -0500
Commit:     Keenan Brock <kbrock>
CommitDate: Mon Dec 19 14:54:47 2016 -0500

    Fix bug where cached parent_rel_ids blew up
    
    relationships returns an array or an association.
    This supports a cached relationships
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1395376

 app/models/mixins/relationship_mixin.rb       |  8 +++++++-
 spec/models/mixins/relationship_mixin_spec.rb | 26 ++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 1 deletion(-)

Comment 7 Gregg Tanzillo 2017-01-11 16:39:43 UTC
Added euwe/yes to https://github.com/ManageIQ/manageiq/pull/13249

Comment 9 Satyajit Bulage 2017-03-08 14:05:18 UTC
"Host Summary for VMs" report generated without any error.

Verified Version: 5.8.0.4.20170307183144_745a3d9


Note You need to log in before you can comment on or make changes to this bug.