Bug 1824358

Summary: null creationTimestamp shows as relative time of 50 years ago
Product: OpenShift Container Platform Reporter: Jessica Forrester <jforrest>
Component: Management ConsoleAssignee: Cyril <cajieh>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, dtaylor, jokerman, xiaocwan
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Code error Consequence: Fix: Fixed Result: Works as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-13 17:27:56 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 Jessica Forrester 2020-04-16 02:01:11 UTC
The ComponentStatus resource appears to have a null creationTimestamp, when going to Explore -> ComponentStatus -> Instances I noticed they all report as "50 years ago". It looks like we are passing the null into the timestamp libraries and getting back epoch time. If i click into one of the instance the same problem happens on the details page expect I get the non-relative epoch time "Dec 31, 1969 7:00 pm"

It's an edge case that should generally not happen, as most resources do report a timestamp. ComponentStatus is a fake object and doesn't behave like normal k8s resources in this particular case.

Should handle the null another way with a N/A or some other way to show there is no timestamp.

Note: i actually found it in 4.4, but it's so minor it probably isn't worth a backport.

Comment 7 XiaochuanWang 2020-05-06 07:02:05 UTC
According to the fix, from PR's (https://github.com/openshift/console/pull/5283/files) comment, it is expected now.

Checked on 4.5.0-0.nightly-2020-05-06-003431
It returns the '-' when props.timestamp is null which is updated in the PR.

Comment 8 errata-xmlrpc 2020-07-13 17:27:56 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:2409