Bug 1198867 - Chargeback reports are unusable under 'Cloud Intelligence > Chargeback > Saved Reports'
Summary: Chargeback reports are unusable under 'Cloud Intelligence > Chargeback > Save...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.3.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: GA
: 5.4.0
Assignee: Milan Zázrivec
QA Contact: Nandini Chandra
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-05 00:47 UTC by Jerome Marc
Modified: 2015-06-16 12:51 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-16 12:51:57 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Description Jerome Marc 2015-03-05 00:47:37 UTC
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:

Comment 5 Milan Zázrivec 2015-03-09 16:20:53 UTC
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.

Comment 12 Milan Zázrivec 2015-03-23 16:38:24 UTC
https://github.com/ManageIQ/manageiq/pull/2311

Comment 13 CFME Bot 2015-04-24 21:15:56 UTC
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(-)

Comment 14 CFME Bot 2015-04-24 21:16:00 UTC
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(-)

Comment 15 CFME Bot 2015-04-24 21:16:04 UTC
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(-)

Comment 16 CFME Bot 2015-04-24 21:16:09 UTC
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(+)

Comment 18 Nandini Chandra 2015-05-12 14:17:18 UTC
Unable to reproduce this issue.Marking this as verified.Please reopen if issue persists.

Comment 20 errata-xmlrpc 2015-06-16 12:51:57 UTC
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


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