Description of problem: When selecting a Classification under Optimize > Utilization > CFME Region: Region [Region Number], CloudForms throw an exception with the following results: Error text: undefined method `report_results' for nil:NilClass [miq_capacity/util_chart_chooser] Version-Release number of selected component (if applicable): CFME 4.0 Build 5.5.2.4.20160127105142_395c086 How reproducible: 100% Reproducible Steps to Reproduce: 1. Login as Administrator 2. Navigate to Optimize > Utilization > CFME Region: Region [Region Number] 3. Select the desired Classification Actual results: Error text: undefined method `report_results' for nil:NilClass [miq_capacity/util_chart_chooser] Expected results: Optimize displays utilization based on tag classification selected. Additional info: Provider is OpenStack (RHEL OSP7) and the classifications we are trying to filter on are applied to the provider only. Customer has very short lifetimes on their instances (less than a week) so not much data is available as well.
Reproducible on upstream. Taking.
https://github.com/ManageIQ/manageiq/pull/8321
Clearing NEEDINFO
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/9cbe28be025c24104411658315f43f956ed95f50 commit 9cbe28be025c24104411658315f43f956ed95f50 Author: Šimon Lukašík <isimluk> AuthorDate: Wed Apr 27 14:48:00 2016 +0200 Commit: Šimon Lukašík <isimluk> CommitDate: Thu May 12 10:24:17 2016 +0200 Notify user when utilization report failed to build https://bugzilla.redhat.com/show_bug.cgi?id=1327322 app/controllers/application_controller/performance.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/cd8301e170fc8b02a2874545fa3b9386f3bad5f5 commit cd8301e170fc8b02a2874545fa3b9386f3bad5f5 Author: Šimon Lukašík <isimluk> AuthorDate: Thu May 12 13:50:27 2016 +0200 Commit: Šimon Lukašík <isimluk> CommitDate: Thu May 12 14:10:04 2016 +0200 Do not pass virtual_attribute to MetricRollup.new The v_derived_storage_used is virtual in metrics. We should not instantiate MetricRollup with this attribute even though it is part of some of the metrics. https://bugzilla.redhat.com/show_bug.cgi?id=1327322 Fixes: #1357 Addressing: can't write unknown attribute `v_derived_storage_used` Method:[rescue in deliver] [...] app/models/vim_performance_analysis.rb:554:in `block in group_perf_by_timestamp' app/models/vim_performance_analysis.rb:545:in `each' app/models/vim_performance_analysis.rb:545:in `inject' app/models/vim_performance_analysis.rb:545:in `group_perf_by_timestamp' app/models/miq_report/generator/utilization.rb:23:in `build_results_for_report_utilization' app/models/vim_performance_analysis.rb | 1 + spec/models/vim_performance_analysis_spec.rb | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+)
https://github.com/ManageIQ/manageiq/pull/9133
https://github.com/ManageIQ/manageiq/pull/7620
Verified in 5.7.0.9
Assigning to Oleksii Tsuman for acking/nacking test_qe_coverage falg.