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

Bug 1404571

Summary: pod age in web console are different from CLI output
Product: OpenShift Container Platform Reporter: Kenjiro Nakayama <knakayam>
Component: ocAssignee: Maciej Szulik <maszulik>
Status: CLOSED CURRENTRELEASE QA Contact: Xingxing Xia <xxia>
Severity: low Docs Contact:
Priority: medium    
Version: 3.3.0CC: aos-bugs, ffranz, jokerman, 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: 2019-08-21 10:09:45 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:
Attachments:
Description Flags
pod list in console
none
pods_ages_differ_in_cli_and_web none

Description Kenjiro Nakayama 2016-12-14 06:56:44 UTC
Created attachment 1231452 [details]
pod list in console

Description of problem:
===
- Please compare "oc get pod" with screenshot.

* cli

  [joe@knakayam-ose33-master1 ~]$ oc get pod
  NAME                   READY     STATUS      RESTARTS   AGE
  hello-javaee-1-build   0/1       Completed   0          4d
  hello-javaee-3-wkkij   1/1       Running     0          4d
  jenkins-1-1l7sb        1/1       Running     0          5d
  sti-php-1-build        0/1       Completed   0          5d
  sti-php-2-build        0/1       Completed   0          3h
  sti-php-2-cv8ck        1/1       Running     0          3h

* web console (attached screen shot)

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

How reproducible:
- Deploy pods.

Steps to Reproduce:
1. Deploy pods

Actual results:
- In the first several minutes, web console's time flows slightly fast. Then, after several days, it will be clearly different from CLI's.

Expected results:
- Output same age between CLI and webconsole.

Comment 1 Xingxing Xia 2016-12-23 09:41:05 UTC
Created attachment 1234978 [details]
pods_ages_differ_in_cli_and_web

I can reproduce it. See attachment pods_ages_differ_in_cli_and_web

From the attachment, through creationTimestamp, ages can be calculated:
database pods ages are 8d and 7h
frontend pods ages are 7d and 13h

CLI and web both round down "8d and 7h" to 8d
CLI and web differ in: web rounds up "7d and 13h" to 8d, while CLI rounds down it to 7d

Comment 2 Fabiano Franz 2017-01-14 17:46:54 UTC
Fixed in https://github.com/openshift/origin/pull/12158

Comment 3 Xingxing Xia 2017-01-16 09:51:09 UTC
Not merged in OCP yet. But can be tested in Origin. See failed test result in https://bugzilla.redhat.com/show_bug.cgi?id=1232251#c9

Comment 4 Fabiano Franz 2017-01-26 20:11:24 UTC
Ok, lowering severity to match the bug in Origin and since it's looking much better now based on comments in

https://bugzilla.redhat.com/show_bug.cgi?id=1232251#c10

Comment 5 Maciej Szulik 2019-08-21 10:09:45 UTC
Should be fixed by now.