Bug 1795456

Summary: [Events page] "Custom Resource" events only show up in "All Resources" type view [openshift-4.4]
Product: OpenShift Container Platform Reporter: tony.wu
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.4CC: aos-bugs, bpeterse, jokerman, sauchter, yapei
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1796461 (view as bug list) Environment:
Last Closed: 2020-05-04 11:27:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1796461, 1796523    
Attachments:
Description Flags
1_[Events]__All-Resources-view___show_appsodyapplication_events.png
none
2_[Events]__AppsodyApplication-CR-view___no_events.png none

Description tony.wu 2020-01-28 02:00:08 UTC
Created attachment 1655846 [details]
1_[Events]__All-Resources-view___show_appsodyapplication_events.png

Description of problem:

It's noticed when looking at "Events" from Custom Resources, they only show up when "Resource" dropdown is set as "All Resources" on the "Events" view.

If change "Resource" dropdown to filter that Custom Resource only, you can only get an empty event list.

Please see the attached screenshots for reference:
* "*Events*" view - "*All Resources*" 
    --> You can see Events from “AppsodyApplication” CR
    1_[Events]__All-Resources-view___show_appsodyapplication_events.png

* "*Events*" view -  filter by "*AppsodyApplication*" CR
    --> "No matching events"
    2_[Events]__AppsodyApplication-CR-view___no_events.png


Version-Release number of selected component (if applicable):
OCP 4.3 and 4.4

How reproducible:
Always


Steps to Reproduce:
1. Create a Custom Resource
2. Go to "Events" page - with "Resource" dropdown set as "All Types" 
   --> make sure see the Events from the Custom Resource
3. Change "Resource" dropdown as that particular Custom Resource
   --> empty event list

Actual results:
Empty event list.

Expected results:
Events filtered by selected CR.


Additional info:

Comment 1 tony.wu 2020-01-28 02:02:20 UTC
Created attachment 1655847 [details]
2_[Events]__AppsodyApplication-CR-view___no_events.png

Comment 2 tony.wu 2020-01-28 02:03:08 UTC
Ported from JIRA:
https://issues.redhat.com/browse/CONSOLE-2047

Comment 4 Yadan Pei 2020-02-03 08:25:17 UTC
1. cluster admin installs 'etcd Operator' into one namespace

2. Wait until operator is successfully subscribed
$ oc get csv -n testuser5-1
NAME                                     DISPLAY                        VERSION   REPLACES   PHASE
akka-cluster-operator-certified.v0.2.0   Akka Cluster Operator          0.2.0                Succeeded
etcdoperator.v0.9.4                      etcd                           0.9.4                Succeeded

3. Create Custom Resource 'EtcdCluster' from Operator Hub

4. Check Custom Resource events via CLI
$ oc describe etcdcluster example  -n testuser5-1
Name:         example
Namespace:    testuser5-1
Labels:       <none>
Annotations:  <none>
API Version:  etcd.database.coreos.com/v1beta2
Kind:         EtcdCluster
Metadata:
  Creation Timestamp:  2020-02-03T07:59:27Z

......
Events:
  Type    Reason            Age   From                            Message
  ----    ------            ----  ----                            -------
  Normal  New Member Added  104s  etcd-operator-7c74855bbf-nrvm2  New member example-5s5ccw4pgp added to cluster
  Normal  New Member Added  72s   etcd-operator-7c74855bbf-nrvm2  New member example-rk89d8xqbx added to cluster
  Normal  New Member Added  32s   etcd-operator-7c74855bbf-nrvm2  New member example-xp6bj75nzq added to cluster

5. Check at Events page Home -> Events, in Resource dropdown select 'EtcdCluster' it will show the same events as we get from CLI

I didn't get Custom Resource 'AppsodyApplication' successfully created so verified the fix on 'etcd' operator

Let me know if it's wrong. Verified on 4.4.0-0.nightly-2020-02-02-201619

Comment 6 errata-xmlrpc 2020-05-04 11:27:25 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://access.redhat.com/errata/RHBA-2020:0581

Comment 7 Samuel Padgett 2020-05-20 12:16:44 UTC
*** Bug 1786325 has been marked as a duplicate of this bug. ***