Bug 1386838 - Old metrics displayed for new pod of same name
Summary: Old metrics displayed for new pod of same name
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-19 17:07 UTC by Justin Pierce
Modified: 2017-03-08 18:43 UTC (History)
6 users (show)

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.
Clone Of:
Environment:
Last Closed: 2017-01-18 12:43:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 17:23:26 UTC

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


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