Bug 1415058

Summary: [trello 60kr8WOB] Events tab of StatefulSet page does not show existent event
Product: OKD Reporter: Xingxing Xia <xxia>
Component: Management ConsoleAssignee: bpeterse
Status: CLOSED CURRENTRELEASE QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, bpeterse, jforrest, mmccomas
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-30 12:50:46 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:

Description Xingxing Xia 2017-01-20 06:29:31 UTC
Description of problem:
Events tab of StatefulSet page does not show existent event

Version-Release number of selected component (if applicable):
openshift v1.5.0-alpha.2+2543fed-29

How reproducible:
Always

Steps to Reproduce:
1. Create StatefulSet with steps in https://bugzilla.redhat.com/show_bug.cgi?id=1414709#c0
2. Check events in CLI
$ oc describe statefulset hello
3. On web console, click Applications --> Stateful Sets --> hello --> Events tab, check events
4. On web console, click Monitoring --> View Details (at upper right), check events of Stateful Set

Actual results:
2. It shows events:
oc describe statefulset hello
Name:			hello
Namespace:		xxia-proj
Image(s):		aosqe/hello-openshift
...
Pods Status:		1 Running / 0 Waiting / 0 Succeeded / 0 Failed
No volumes.
Events:
  FirstSeen	LastSeen	Count	From		SubObjectPath	Type		Reason			Message
  ---------	--------	-----	----		-------------	--------	------			-------
  34s		34s		1	{statefulset }			Normal		SuccessfulCreate	pet: hello-0

3. It does not show event, just displaying "No events to show"
4. There is Stateful Set event same as CLI in step 2:
1:47:31 PM 	hello 	Stateful Set 	Normal 	Successful create  	pet: hello-0

Expected results:
3. Events tab should show event

Additional info:
** By the way, click Monitoring page, there is no Stateful Set item. Is it missed or intended? **

Comment 2 Xingxing Xia 2017-01-22 07:42:20 UTC
Checked in openshift v1.5.0-alpha.2+6e9d68d-91. Now Events tab of StatefulSet page works correctly, it can display/filter/sorts correctly for statefulset events:
1:55:17 PM 	Normal 	Successful create  	pet: hello-0
1:55:22 PM 	Normal 	Successful create  	pet: hello-1
1:58:46 PM 	Normal 	Successful create  	pet: hello-2
2:37:58 PM 	Normal 	Successful delete  	pet: hello-2
2:37:58 PM 	Normal 	Successful delete  	pet: hello-1


> Additional info:
> ** By the way, click Monitoring page, there is no Stateful Set item. Is it missed or intended? **

Monitoring page still has no statefulset. What's should be expected about statefulset in this page?

Comment 3 Jessica Forrester 2017-01-23 14:48:25 UTC
We had a PR for the monitoring page that was supposed to merge on friday but it flaked.  It is merged now.

Comment 4 Yadan Pei 2017-01-24 05:58:08 UTC
Checked against openshift v1.5.0-alpha.2+b61bed3-113

1. Create statefulset
2. oc edit statefulset  //change replicas to 3
3. oc edit statefulset  //then change replicas back to 1
4. On web console, click Applications --> Stateful Sets --> hello --> Events tab
- Events for StatefulSets are shown correctly on Events tab

5. On web console, click Monitoring --> View Details
- Events for StatefulSets are also shown correctly on Events page browse/events

Move to VERIFIED

Comment 5 bpeterse 2017-03-13 14:04:43 UTC
Yup merged.