Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1386838

Summary: Old metrics displayed for new pod of same name
Product: OpenShift Container Platform Reporter: Justin Pierce <jupierce>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: aos-bugs, jokerman, mmccomas, tdawson, yanpzhan, zhezli
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
If you deleted a pod and created a new pod with the same name, you would see metrics for the previous pod when viewing metrics. We now only show metrics for the new pod.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 12:43:42 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 Justin Pierce 2016-10-19 17:07:41 UTC
Description of problem:
Within the same namespace, if you delete a pod and create a new one with the same name, the old pod's metrics will be displayed as part of the new pod's metrics timeline. 

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

How reproducible:
100%

Steps to Reproduce:
1. Create a pod named "test" and allow it to run for 20 minutes
2. Delete the pod
3. Create a new pod named "test"
4. View the pod "metrics" tab in the web console

Actual results:
You see the metrics from the old pod included in the timeline. 

Expected results:
The metrics would be limited to the new pod.

Additional info:
This also occurs for deployment configs of the same name. In this case, the old metrics data is included in the metrics of the new on the "Overview" page.

Comment 1 Yanping Zhang 2016-10-21 07:56:51 UTC
openshift v3.3.1.3
kubernetes v1.3.0+52492b4
etcd 2.3.0+git
Checked on OCP 3.3.1.3, the bug can be reproduced.

Comment 3 Troy Dawson 2016-10-27 16:03:15 UTC
This has been merged into ose and is in OSE v3.4.0.16 or newer.

Comment 5 Yanping Zhang 2016-10-28 09:28:21 UTC
Tested on OCP 3.4.0.16, Metrics deploying failed due to bug: https://bugzilla.redhat.com/show_bug.cgi?id=1388833, will continue to verify the after metrics works.

Comment 6 Yanping Zhang 2016-11-01 08:30:46 UTC
Checked on OCP v3.4.0.18, metrics is deployed. Create a pod, after some time, view the metrics of the pod, then delete the pod, create a new pod with the same name, view the metrics of the new pod, the metrics charts are new for the pod, not using the old pod's metrics. The bug is fixed, so move it to Verified.

Comment 9 errata-xmlrpc 2017-01-18 12:43:42 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-2017:0066