Bug 1377868 - Build time is incorrect in OSE web console
Summary: Build time is incorrect in OSE web console
Keywords:
Status: CLOSED DUPLICATE of bug 1371764
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.2.0
Hardware: Unspecified
OS: Windows
medium
medium
Target Milestone: ---
: ---
Assignee: Jessica Forrester
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-20 20:34 UTC by Troy Muma
Modified: 2016-09-22 02:42 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-21 13:34:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1299328 0 low CLOSED It's better to use current time from server instead of client to get resource age when using 'oc get/deploy/describe' et... 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1371764 0 medium CLOSED Running build's duration is not correct on build page when local time is not sync with server 2021-02-22 00:41:40 UTC

Internal Links: 1299328 1371764

Description Troy Muma 2016-09-20 20:34:51 UTC
Description of problem:
OpenShift console displays incorrect (possibly positive or negative) counter time when a build is started.

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


How reproducible:
Seems to happen every time I start a build with the web console.

Steps to Reproduce:
1. Log into OSE web console (using Google Chrome on Windows 7).
2. Select an existing project.
3. Browse -> Builds
4. Select a pre-existing build.
5. Click "Start Build"
Build is listed in the table but "Status" "Running for..." time seems to be calculated based on the local time where my browser is running (time on my laptop) whereas the "Created" timestamp comes from the server running OSE. The times listed for the build in the CLI using oc describe use the server time and work fine but the counter in the console will be incorrect (until the build finishes) if the server time and browser environment time are different. It will start out negative if the local time is behind the server time and start out positive if the local time is ahead of the server time.

Actual results:
Running for time is incorrect by the difference between the OSE server clock and the web console user's local clock.

Expected results:
"Running for" time in the console matches what "oc describe" outputs. Both should use the server's time to calculate "Running for" time.

Additional info:

Comment 1 Jessica Forrester 2016-09-20 20:40:16 UTC
@cewong what is the CLI doing to calculate how long the build has been running

Comment 2 Jessica Forrester 2016-09-20 20:43:40 UTC
This shouldn't be an issue of timezones, this would be an issue of clock skew.  Either the client's clock or the server's clock was not on the correct time.

Comment 3 Jessica Forrester 2016-09-21 13:34:48 UTC

*** This bug has been marked as a duplicate of bug 1371764 ***

Comment 4 Xingxing Xia 2016-09-22 02:42:10 UTC
Just reminder: Though marked duplicate, this bug's Version field is 3.2.0 while bug 1371764 is reported against 3.3. So there is a concern: given bug 1371764 is fixed, whether need backport the fix to 3.2.


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