Description of problem: Despite working under 'Cloud Intelligence > Reports' tab, it is impossible to see full saved chargeback reports under 'Cloud Intelligence > Chargeback > Saved Reports'. We noticed multiple issues on this screen: - When generating a chargeback report, trying to see the report through an unexpected error when clicking on the tree in 'Cloud Intelligence > Chargeback > Saved Reports' - Only the first page of the report is displayed and there is no page control available on the screen (next/previous/last page buttons missing) - Export button is constantly disabled. It is impossible to export reports from this screen Version-Release number of selected component (if applicable): CFME 5.3.2.6.20150108100920_387a856 CloudForms 3.1 How reproducible: Always Steps to Reproduce: 1. Generate a chargeback report from 'Cloud Intelligence > Reports' 2. Navigate to 'Cloud Intelligence > Chargeback > Saved Reports' and try to see the generated report Actual results: If the report is generated by the time you click on the tree, you will see the first page of the report with no page control or ability to export. If the report generation hasn't completed, an unexpected error with be displayed with message: undefined local variable or method `report' for #<ChargebackController:0x0000000dcdc690> [chargeback/tree_select] Expected results: No error screen Being able to navigate and export the generated report Additional info:
I cannot reproduce the problem based solely on the initial description (everything works fine on my end). I'd like to request access to the CFME instance showing the problem and / or its database. Also, complete error log (as found in /var/www/miq/) would be appreciated. Thanks.
https://github.com/ManageIQ/manageiq/pull/2311
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/95cabac594736f80e13698eb3fd033ba147a2ba6 commit 95cabac594736f80e13698eb3fd033ba147a2ba6 Author: Milan Zazrivec <mzazrivec> AuthorDate: Mon Mar 23 13:04:02 2015 +0100 Commit: Milan Zazrivec <mzazrivec> CommitDate: Fri Apr 24 10:22:47 2015 +0200 Correctly render paging buttons for saved chargeback reports https://bugzilla.redhat.com/show_bug.cgi?id=1198867 vmdb/app/controllers/chargeback_controller.rb | 7 +++++++ vmdb/app/helpers/application_helper.rb | 5 ++--- vmdb/config/routes.rb | 1 + 3 files changed, 10 insertions(+), 3 deletions(-)
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/a176783a2c089d2778f78a3697e86c457f20a5d4 commit a176783a2c089d2778f78a3697e86c457f20a5d4 Author: Milan Zazrivec <mzazrivec> AuthorDate: Mon Mar 23 17:03:10 2015 +0100 Commit: Milan Zazrivec <mzazrivec> CommitDate: Fri Apr 24 10:22:47 2015 +0200 Correctly enable / disable fullscreen & report download buttons https://bugzilla.redhat.com/show_bug.cgi?id=1198867 vmdb/app/models/miq_report.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/a66b9a4cb741914d11a12d43cb32e722c4f9f149 commit a66b9a4cb741914d11a12d43cb32e722c4f9f149 Author: Milan Zazrivec <mzazrivec> AuthorDate: Mon Mar 23 17:33:54 2015 +0100 Commit: Milan Zazrivec <mzazrivec> CommitDate: Fri Apr 24 10:22:47 2015 +0200 Fix error when trying to display incomplete chargeback report This is to address the following error: Error caught: [NoMethodError] undefined method `in_time_zone' for nil:NilClass app/controllers/application_controller.rb:969:in `convert_time_from_utc' app/controllers/chargeback_controller.rb:513:in `block in cb_rpts_get_all_reps' app/controllers/chargeback_controller.rb:512:in `each' app/controllers/chargeback_controller.rb:512:in `cb_rpts_get_all_reps' app/controllers/chargeback_controller.rb:475:in `get_node_info' app/controllers/chargeback_controller.rb:42:in `tree_select' https://bugzilla.redhat.com/show_bug.cgi?id=1198867 vmdb/app/controllers/chargeback_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/470676002e03f9ffd0e9434ba5feb9662080d8e6 commit 470676002e03f9ffd0e9434ba5feb9662080d8e6 Author: Milan Zazrivec <mzazrivec> AuthorDate: Fri Apr 24 17:18:09 2015 +0200 Commit: Milan Zazrivec <mzazrivec> CommitDate: Fri Apr 24 17:18:09 2015 +0200 Added test for correct rendering of pagination buttons https://bugzilla.redhat.com/show_bug.cgi?id=1198867 .../spec/controllers/chargeback_controller_spec.rb | 29 ++++++++++++++++++++++ vmdb/spec/factories/miq_report.rb | 4 +++ 2 files changed, 33 insertions(+)
Unable to reproduce this issue.Marking this as verified.Please reopen if issue persists.
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://rhn.redhat.com/errata/RHBA-2015-1100.html