Bug 1391644 - events are competely messed in timelines when several/all management categories are chosen
Summary: events are competely messed in timelines when several/all management categori...
Keywords:
Status: CLOSED DUPLICATE of bug 1391621
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.7.0
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: GA
: cfme-future
Assignee: Harpreet Kataria
QA Contact: Ievgen Zapolskyi
URL:
Whiteboard: ui:timeline
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-03 16:31 UTC by Ievgen Zapolskyi
Modified: 2016-11-18 22:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-15 21:58:39 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:


Attachments (Terms of Use)
deployment event in Power Activity category (112.61 KB, image/png)
2016-11-03 16:31 UTC, Ievgen Zapolskyi
no flags Details

Description Ievgen Zapolskyi 2016-11-03 16:31:05 UTC
Created attachment 1217086 [details]
deployment event in Power Activity category

Description of problem:
When I choose several/many/all categories in timelines for vm/provider/etc, many General Activity or Creation/Addition events appear in Powever Activity timeline and vice versa. So, the events are in mess 

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

How reproducible:
100%

Steps to Reproduce:
1. Add f.e. Infra Provider vsphere55
2. Do some activities in provider. f.e. deploy vms, stop/start them
3. Open Timelines for provider
4. Select all management categories there and set date position to centered
5. Click Apply
6. Go thru events for appeared categories and check their real categories

Actual results:
many events belonging to one category appear in another category.
amount of events in appropriate category may change if number of selected categories is changed. see screenshot.

Expected results:
all the categories should display only relevant events.

Comment 3 dgutride 2016-11-15 14:28:49 UTC
The timeline javascript code is handling the data returned correctly.  When I add multiple categories - I see the following added to the Power Activity section in the response json (just picked a few for example):

"name": "Power Activity",
    "data": [
      [
        {
          "start": "Sat, 17 Sep 2016 02:10:17 +0000",
          "title": "vcenter6",
          "icon": "/images/timeline/generaluserevent.png",
          "image": "/assets/100/os-linux_suse-92ca71c35750f878b439c65ca69668812e765ee630d037213c445092fa9657b6.png",
          "description": "<b>Event Type:</b>&nbsp;GeneralUserEvent<br/><b>Event Source:</b>&nbsp;VC<br/><b>Provider:</b>&nbsp;<a href=/ems_infra/10r1>vCenter</a><br/><b>Message:</b>&nbsp;User logged event: Console Request Action [vm_reboot_guest], VM [vcenter6]<br/><b>Source Host:</b>&nbsp;<a href=/host/show/10r17>10.9.62.4</a><br/><b>Source VM:</b>&nbsp;<a href=/vm/show/10r759>vcenter6</a><br/><b>Source VM Location:</b>&nbsp;[datastore-esxi1] vcenter6/vcenter6.vmx<br/><b>Provider User Name:</b>&nbsp;VSPHERE.LOCAL\\Administrator<br/><b>Date Time:</b>&nbsp;2016-09-17 02:10:17 UTC"
        },
        {
          "start": "Fri, 07 Oct 2016 12:51:29 +0000",
          "title": "ansible",
          "icon": "/images/timeline/generaluserevent.png",
          "image": "/assets/100/os-linux_redhat-c0d4d64bf57b43a5ed8e86109dc00e2dcb4da9b77c715e5fe0cbeb4da39cbfd1.png",
          "description": "<b>Event Type:</b>&nbsp;GeneralUserEvent<br/><b>Event Source:</b>&nbsp;VC<br/><b>Provider:</b>&nbsp;<a href=/ems_infra/10r1>vCenter</a><br/><b>Message:</b>&nbsp;User logged event: Console Request Action [vm_create_snapshot], VM [ansible]<br/><b>Source Host:</b>&nbsp;<a href=/host/show/10r17>10.9.62.4</a><br/><b>Source VM:</b>&nbsp;<a href=/vm/show/10r753>ansible</a><br/><b>Source VM Location:</b>&nbsp;[Shared-NFS] rhevm_1/rhevm.vmx<br/><b>Provider User Name:</b>&nbsp;VSPHERE.LOCAL\\Administrator<br/><b>Date Time:</b>&nbsp;2016-10-07 12:51:29 UTC"
        },
        {
          "start": "Fri, 23 Sep 2016 14:07:44 +0000",
          "title": "win10",
          "icon": "/images/timeline/evm_analysis.png",
          "image": "/assets/100/os-windows_generic-f056e7d55986ef4f6d4aba5e50c97481657b3bb43f80425e8c2e4d383ec71d54.png",
          "description": "<b>Event Type:</b>&nbsp;GeneralUserEvent<br/><b>Event Source:</b>&nbsp;VC<br/><b>Provider:</b>&nbsp;<a href=/ems_infra/10r1>vCenter</a><br/><b>Message:</b>&nbsp;User logged event: EVM SmartState Analysis completed for VM [win10]<br/><b>Source Host:</b>&nbsp;<a href=/host/show/10r17>10.9.62.4</a><br/><b>Source VM:</b>&nbsp;<a href=/vm/show/10r760>win10</a><br/><b>Source VM Location:</b>&nbsp;[Shared-NFS] win10/win10.vmx<br/><b>Provider User Name:</b>&nbsp;VSPHERE.LOCAL\\Administrator<br/><b>Date Time:</b>&nbsp;2016-09-23 14:07:44 UTC"
        },

Comment 4 Harpreet Kataria 2016-11-15 21:58:39 UTC
Ivegen,

Can you test this with latest build, i was not able to recreate this issue locally. This issue should have been addressed with https://github.com/ManageIQ/manageiq/pull/12518. Marking this one as dup of https://bugzilla.redhat.com/show_bug.cgi?id=1391621, in both cases events weren't being returned correctly for each category, same fix applies to both.

Thanks,
~Harpreet

*** This bug has been marked as a duplicate of bug 1391621 ***


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