Bug 1475782 - exception on attempt to open report with timelines "Operations VM Power On/Off Events for Last Week"
exception on attempt to open report with timelines "Operations VM Power On/Of...
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
Unspecified Unspecified
high Severity high
: GA
: 5.9.0
Assigned To: Harpreet Kataria
Ievgen Zapolskyi
: TestOnly, ZStream
: 1467333 (view as bug list)
Depends On:
Blocks: 1480000
  Show dependency treegraph
Reported: 2017-07-27 06:46 EDT by Ievgen Zapolskyi
Modified: 2018-03-06 10:49 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1480000 (view as bug list)
Last Closed: 2018-03-06 10:49:27 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: Bug
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core

Attachments (Terms of Use)
backtrace (7.88 KB, text/plain)
2017-07-27 06:58 EDT, Ievgen Zapolskyi
no flags Details
contents of event_streams table (4.16 MB, application/x-bzip)
2017-07-27 09:04 EDT, Ievgen Zapolskyi
no flags Details
sql inserts for event_streams data (4.51 MB, application/x-bzip)
2017-07-27 09:09 EDT, Ievgen Zapolskyi
no flags Details

  None (edit)
Description Ievgen Zapolskyi 2017-07-27 06:46:35 EDT
Description of problem:
The report raises exception, when I copy this report and modify its filter to show "This Week" events. 
It seems this happenes because event_streams contains some event which it cannot parse/format.
The same thing happens when i try to download this report any format.

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

How reproducible:
100% but it requires same set of events

Steps to Reproduce:
0. Put attached events to event_streams 
1. Go to Cloud Intel->Reports->Reports->All Reports->Events->Operations
2. Choose "Operations VM Power On/Off Events for Last Week" report and make a copy of it
3. Change title and its filter. Filter should be the same except "Management Event: Activity Sample" should be "This Week". But it depends on age of power on/off events in event_streams table for sure.
4. Click Add
5. Go to Cloud Intel->Timelines->Timelines->My Company->Custom
6. Choose just created report

Actual results:
CFME gets broken and shows "unexpected error encountered" view

Expected results:
correct timelines rendering
Comment 2 Ievgen Zapolskyi 2017-07-27 06:58 EDT
Created attachment 1305281 [details]
Comment 3 Ievgen Zapolskyi 2017-07-27 09:04 EDT
Created attachment 1305358 [details]
contents of event_streams table
Comment 4 Ievgen Zapolskyi 2017-07-27 09:09 EDT
Created attachment 1305361 [details]
sql inserts for event_streams data
Comment 5 Harpreet Kataria 2017-08-07 05:30:08 EDT
Comment 6 CFME Bot 2017-08-07 10:48:43 EDT
New commit detected on ManageIQ/manageiq-ui-classic/master:

commit 1acc2e3926b567e4a2cf96e87d18af70d2273510
Author:     Harpreet Kataria <hkataria@redhat.com>
AuthorDate: Mon Aug 7 05:25:31 2017 -0400
Commit:     Harpreet Kataria <hkataria@redhat.com>
CommitDate: Mon Aug 7 07:44:34 2017 -0400

    Fixed code to only set data/headers column exists in Report col headers.

 lib/report_formatter/timeline.rb          |  8 +++---
 spec/lib/report_formater/timeline_spec.rb | 44 +++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 4 deletions(-)
Comment 8 Ievgen Zapolskyi 2017-08-21 03:30:20 EDT
*** Bug 1467333 has been marked as a duplicate of this bug. ***
Comment 9 Ievgen Zapolskyi 2017-10-17 08:54:45 EDT
verified in

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